M
Matt Petteys
I'm using 1.1 framework and IE 6.0. A form within a user control
generates the following doPostBack method. The control ID of the form
is not a valid javascript variable name, ie
UserProjectDataEntry1:EnterPeriodTime. When the page is loaded, I get a
runtime error when it parses the following line.
theform = document.UserProjectDataEntry1:EnterPeriodTime;
This used to work on the 1.0 framework. Any ideas?
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["UserProjectDataEntry1:EnterPeriodTime"];
}
else {
theform = document.UserProjectDataEntry1:EnterPeriodTime;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
generates the following doPostBack method. The control ID of the form
is not a valid javascript variable name, ie
UserProjectDataEntry1:EnterPeriodTime. When the page is loaded, I get a
runtime error when it parses the following line.
theform = document.UserProjectDataEntry1:EnterPeriodTime;
This used to work on the 1.0 framework. Any ideas?
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["UserProjectDataEntry1:EnterPeriodTime"];
}
else {
theform = document.UserProjectDataEntry1:EnterPeriodTime;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}