stephen2005
Programmer
any ideas why this error would occur when an auto
postback event is triggered from dropdown list?
"Microsoft JScript runtime error: Object doesn't support this property
or method"
<script type="text/javascript">
<!--
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit(); <---------------ERROR Occurs here
}
}
// -->
</script>
postback event is triggered from dropdown list?
"Microsoft JScript runtime error: Object doesn't support this property
or method"
<script type="text/javascript">
<!--
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit(); <---------------ERROR Occurs here
}
}
// -->
</script>