homepage Welcome to WebmasterWorld Guest from 54.197.94.241
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
OnSubmit grab external file and read a variable
This variable would determine if submit should return true or false
otem




msg:3311736
 4:56 pm on Apr 15, 2007 (gmt 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

 

humpg




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved