gklinux
10-29-2003, 12:34 PM
hi,
i'm working on a form which has an image button like this:
<img src= \"next.gif\" alt = \"next\" onClick=goSave(0);>
basically there are multiple forms.
my goSave function looks like this:
function goSave(page) {
document.forms[page].action= \"http://66.36.242.93/test123/testfiles/ccprform.php?pageno=2\";
document.forms[0].submit();
}
i get a javascript error :
document.froms[0].submit() is not a function.
no error with
document.forms[0].action , though.
I'm doing these as an upgrade to an almost finished project, only this is stopping me.
thanks in advance,
gklinux
i'm working on a form which has an image button like this:
<img src= \"next.gif\" alt = \"next\" onClick=goSave(0);>
basically there are multiple forms.
my goSave function looks like this:
function goSave(page) {
document.forms[page].action= \"http://66.36.242.93/test123/testfiles/ccprform.php?pageno=2\";
document.forms[0].submit();
}
i get a javascript error :
document.froms[0].submit() is not a function.
no error with
document.forms[0].action , though.
I'm doing these as an upgrade to an almost finished project, only this is stopping me.
thanks in advance,
gklinux