Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

v1.1 __doPostBack javascript

Status
Not open for further replies.

DavidHermansen

Programmer
Aug 10, 2003
1
US
I removed the <> around the script tags.

My user control under v1.0.3705 writes the following:


script language=&quot;javascript&quot;
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform = document._ctl3_FormEditMode;
theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
/script

The same user control under v1.1.4322 writes:

script language=&quot;javascript&quot;
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf(&quot;netscape&quot;) > -1) {
theform = document.forms[&quot;_ctl3:FormEditMode&quot;];
}
else {
theform = document._ctl3:FormEditMode;
}
theform.__EVENTTARGET.value = eventTarget.split(&quot;$&quot;).join(&quot;:&quot;);
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
/script

and my user control no longer works even when I use IE6!

What is going on here, and how do make it write the former script again?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top