C
Cosimo Galasso
I get a java script error on Internet Explorer when changing the index of a
drop down list control inside a form.
The error is: __EVENTTARGET is null or is not an object.
The java script code is auto generated by the framework library, and the
error is in the following function:
<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
The error is on the line: theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
drop down list control inside a form.
The error is: __EVENTTARGET is null or is not an object.
The java script code is auto generated by the framework library, and the
error is in the following function:
<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
The error is on the line: theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");