M
Miguel Figueroa
Hi,
I'm (and I thing a lot of guys are) having problems with
the __doPostBack javascript function. This due to the
installation of .Net 1.1 on my pc containing the .Net 1.0
The project I'm working on it, targets the .Net 1.0 (has
not been migrated to .Net 1.1).
Problem description:
Object expected.
Code:
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase
().indexOf("netscape") > -1) {
theform = document.forms
["Layout:frmLayout"];
}
else {
theform =
document.Layout:frmLayout;
}
theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value =
eventArgument;
theform.submit();
}
As you can see the code document.Layout:frmLayout;
is invalid in JavaScript because of the :frmLayout
I'm (and I thing a lot of guys are) having problems with
the __doPostBack javascript function. This due to the
installation of .Net 1.1 on my pc containing the .Net 1.0
The project I'm working on it, targets the .Net 1.0 (has
not been migrated to .Net 1.1).
Problem description:
Object expected.
Code:
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase
().indexOf("netscape") > -1) {
theform = document.forms
["Layout:frmLayout"];
}
else {
theform =
document.Layout:frmLayout;
}
theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value =
eventArgument;
theform.submit();
}
As you can see the code document.Layout:frmLayout;
is invalid in JavaScript because of the :frmLayout