Ok i have a small problem and I would appreciate some help :-)
Ok I have a form that uses huge javascript arrays to fill drop downs (ie you change the manufacturer drop down to "dell" and it fills the Preferred Models drop down to "Gx260..." etc...)
Those javascript arrays are created using ASP to pull information from a database.
I then use the
< body onload="fillmanufact(); ....." >
well this form as required fields so when you fail to fill in those fields and hit submit it tells you what you forgot to fill in and a "go back" button < onclick="javascript:history.go(-1)" >
when they go back it re-executes the body onload stuff....
How can i make it so that it only executes the onload stuff once?? because when they go back it resets all the work they have done in the form.
any ideas?
Ok I have a form that uses huge javascript arrays to fill drop downs (ie you change the manufacturer drop down to "dell" and it fills the Preferred Models drop down to "Gx260..." etc...)
Those javascript arrays are created using ASP to pull information from a database.
I then use the
< body onload="fillmanufact(); ....." >
well this form as required fields so when you fail to fill in those fields and hit submit it tells you what you forgot to fill in and a "go back" button < onclick="javascript:history.go(-1)" >
when they go back it re-executes the body onload stuff....
How can i make it so that it only executes the onload stuff once?? because when they go back it resets all the work they have done in the form.
any ideas?
