In the example I posted, I am just passing a
string with the name of the form. The script than gets the form object with the name.
with the script you were using, you would of have to do this
onload="parent.nav_panel.reset_form(parent.nav_panel.document.search_form_1)";
with the function I posted you would have to do this:
onload="parent.nav_panel.ResetForm('search_form_1')"
A simple
test to check if you are referencing the form correctly, you could do this:
onload="alert(parent.nav_panel.document.search_form_1.elements.length)"
it should display the number of elements in your form.
This line:
onload="parent.nav_panel.document.search_form_1.reset()"
sets the form to its initial state. So if it had values to start with it will go back to those values, it does not blank them out.
[edit - whoops had extra ) in the last code example]
Eric
[ May 25, 2005: Message edited by: Eric Pascarello ]