M
Manoj Mathew
I get a javascript error while loading an ASP.Net page. The page contains a
form to which ASP.Net inserts a name which has ":" charachter. The
javascript generated by ASP.Net gives an error of an Expected ";". The
javascript code generated is
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
{
theform = document.forms["_ctl0:_ctl0:MediaPartnerForm136"];
}
else
{
theform = document._ctl0:_ctl0:MediaPartnerForm136;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
The form has the attributes
<form name="_ctl0:_ctl0:MediaPartnerForm136" method="post"
action="lightbox.aspx" id="_ctl0__ctl0_MediaPartnerForm136">
Can someone give me some insight on this if this can be handled?
Manoj
form to which ASP.Net inserts a name which has ":" charachter. The
javascript generated by ASP.Net gives an error of an Expected ";". The
javascript code generated is
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
{
theform = document.forms["_ctl0:_ctl0:MediaPartnerForm136"];
}
else
{
theform = document._ctl0:_ctl0:MediaPartnerForm136;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
The form has the attributes
<form name="_ctl0:_ctl0:MediaPartnerForm136" method="post"
action="lightbox.aspx" id="_ctl0__ctl0_MediaPartnerForm136">
Can someone give me some insight on this if this can be handled?
Manoj