Hi, guys,
I met a strange problem. I have some hyper links. When user clicks them, it will call some javascript function (see code below). That function assigns values to some hidden fields, and then call the form's submit() method. It works well in IE6, but the submit() does not work in IE5.5 and IE5. No error message, it just does not run submit() at all. I tracked the code before and even after the submit(), they all work OK.
<!-- hyper link-->
<A HREF="#" onClick="gotoPag(document.Searchdb, 'page', '1', 'table','Project')">
Status of Project
</A>
<!-- java script function -->
function gotoPage (aForm, hidden1, val1, hidden2, val2)
{
aForm[hidden1].value = val1;
aForm[hidden2].value = val2;
aForm.submit(); //Does not run. No error message.
return ;
}
I have another button on the screen. On click, it will call a different java script function (see code below). And the submit() in this function works.
<!-- button -->
<INPUT TYPE=button NAME=unFilterBtn VALUE="Reset" class="Bsbttn" onClick="doFilter(document.Searchdb, 'filterHdn', 'no')">
<!-- javaScript function -- >
function doFilter (aForm, aHidden, aValue)
{
aForm[aHidden].value = aValue;
aForm.submit(); //works
return;
}
Is this a browser problem? Is there any way I can make it work in IE5 and IE5.5?
Thanks.
Lisa
I met a strange problem. I have some hyper links. When user clicks them, it will call some javascript function (see code below). That function assigns values to some hidden fields, and then call the form's submit() method. It works well in IE6, but the submit() does not work in IE5.5 and IE5. No error message, it just does not run submit() at all. I tracked the code before and even after the submit(), they all work OK.
<!-- hyper link-->
<A HREF="#" onClick="gotoPag(document.Searchdb, 'page', '1', 'table','Project')">
Status of Project
</A>
<!-- java script function -->
function gotoPage (aForm, hidden1, val1, hidden2, val2)
{
aForm[hidden1].value = val1;
aForm[hidden2].value = val2;
aForm.submit(); //Does not run. No error message.
return ;
}
I have another button on the screen. On click, it will call a different java script function (see code below). And the submit() in this function works.
<!-- button -->
<INPUT TYPE=button NAME=unFilterBtn VALUE="Reset" class="Bsbttn" onClick="doFilter(document.Searchdb, 'filterHdn', 'no')">
<!-- javaScript function -- >
function doFilter (aForm, aHidden, aValue)
{
aForm[aHidden].value = aValue;
aForm.submit(); //works
return;
}
Is this a browser problem? Is there any way I can make it work in IE5 and IE5.5?
Thanks.
Lisa