Jump to content


Clicking Submit Button check two Java script

  • This topic is locked This topic is locked
1 reply to this topic

#1 lsmith3306



  • Members
  • Pip
  • 1 posts

Posted 14 November 2003 - 08:53 AM

I have two Java Scripts the first one checks and make sure all the fields are valid. the second script adds the info to the fields so that they come on to the next screen, is there a way on the submit button to use the first Java Script and then go to the next Java Script to complete the task? Any Help on this I say Thank YOU!!

#2 ron


    Advanced Member

  • Members
  • 2,003 posts

Posted 14 November 2003 - 09:15 AM

Yes there is. But first, Java has absolutely nothing to do with JavaScript - they share an unfortunate similarity in names (one was taken as a source example for syntax, but has no other relationship to the other.) Java is a strictly typed language like C++, and JavaScript is untyped and "exists" to support browsers (mainly). Enough of that...

In JS, you can call one function from another, or (for clarity) you may call each function, in turn, from an event handler (EH) within your HTML. You probably need to look up EH's to see how to do what you want...


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users