N
Noozer
For some reason I am not able to submit my form using javascript. In IE (my
target browser), with the code below I get a "Object doesn't suppor this
property or method" error. If I click the submit button (labelled "go") it
works fine.
Any suggestions on how I can submit this form once I'm finished processing
this javascript?
<form name="selections" id="selections" action="mypage.asp" method=post>
<input name="Branch" type=text value=<%=numBranch%>>
<input name="submit" type=submit value="go">
</form>
<a href="#" onclick="applyBranch('0'); return false;">Branches</a>
<script language=javascript type="text/javascript"> <!--
function applyBranch(val) {
selections.elements['Branch'].value = val;
selections.submit();
}
--></script>
target browser), with the code below I get a "Object doesn't suppor this
property or method" error. If I click the submit button (labelled "go") it
works fine.
Any suggestions on how I can submit this form once I'm finished processing
this javascript?
<form name="selections" id="selections" action="mypage.asp" method=post>
<input name="Branch" type=text value=<%=numBranch%>>
<input name="submit" type=submit value="go">
</form>
<a href="#" onclick="applyBranch('0'); return false;">Branches</a>
<script language=javascript type="text/javascript"> <!--
function applyBranch(val) {
selections.elements['Branch'].value = val;
selections.submit();
}
--></script>