Welcome to WebmasterWorld Guest from 54.234.114.182

Forum Moderators: open

Message Too Old, No Replies

OnSubmit grab external file and read a variable

This variable would determine if submit should return true or false

     
4:56 pm on Apr 15, 2007 (gmt 0)

Junior Member

5+ Year Member

joined:Feb 6, 2007
posts:97
votes: 0


On a form submit, is it possible to get a value from another page, and then produce an if/else condition in javascript to see if the submit should continue or not?

Something like this:

user types in a value and presses submit
onsubmit javascript requests a file based upon that inputed value (something like input.js)
if input.js' var continue=true, submit form
else return false

Thanks

6:28 pm on Apr 15, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 29, 2004
posts:84
votes: 0


Could you not just include the JS file in the page with the form and check the variable....
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members