|
Rank: Starting Member
Groups: Registered
Joined: 11/6/2003 Posts: 1 Location: ,
|
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!!
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/24/2002 Posts: 2,004 Location: ,
|
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...
Ron.
|