This should be easy
I am trying to use a hyperlink to set a value on a form in my page and then submit the form.
The function writes the correct value to the field I need but will not submit the form afterwards - see below for function.
<script language="javascript">
function letsgo(intPagenum) {
var pn
pn = intPagenum
document.frmsearchfields.pagenum.value=pn;
document.frmsearchfields.submit();
}
</script>
Very strange, the form is named correctly and has an action and a method. The only troubling thing is that the form contains nested tables - not sure if this should make a difference. I have validated the code and the tables are all opened and closed correctly.
I can't figure this out.... I get an Object doesn't support this property or method error!
HELP PLEASE???
Ben
|