thebeginner
07-16-2003, 05:25 PM
I am new to Javascript, but not to Web Design. I am having a difficult time deciphering some script. If someone with a kind heart and little time can explain to me what this script is doing.. I will be soo thankful... I don't have access to their server at this time and can't tell you what other pages exist. With regards to my knowledge of JavaScript --- at this pt. I understand the basics of variables, if-then, prompts, links and methods, but I am having a hard time figuring out the following:
1) http://www.drary.com/origin.asp - view source here.
where the validator FrontPage_Form1_Validator(the form)for this script is originally defined and what the IF statement means
- specifically theForm.Origin.selectedIndex == 0
theForm.Origin.focus();
2)on submit= "return FrontPage_Form1_Validator(this)" ??
3)re --- .asp pages..
why or should I say how... are you able to use one page origin.asp once the viewer has made their choice on the dropdown box and have it load into this page. In other words.. how does this script get the choices to load without changing the page..?? do I need to learn .asp to get this thing figured out.. please say no... :) :)
thank a million and one..
1) http://www.drary.com/origin.asp - view source here.
where the validator FrontPage_Form1_Validator(the form)for this script is originally defined and what the IF statement means
- specifically theForm.Origin.selectedIndex == 0
theForm.Origin.focus();
2)on submit= "return FrontPage_Form1_Validator(this)" ??
3)re --- .asp pages..
why or should I say how... are you able to use one page origin.asp once the viewer has made their choice on the dropdown box and have it load into this page. In other words.. how does this script get the choices to load without changing the page..?? do I need to learn .asp to get this thing figured out.. please say no... :) :)
thank a million and one..