Treeview JS error when AutoPostBack=True...

S

Stu

Hi,

I keep getting a Javascript error on the MS Treeview control when
Autopostback = true. It appears to be coming from a script generated by the
Treeview at the bottom of the page. The error is Error: Expected ';'

Has anybody come across this before/know a fix? Can anybody tell me where
this script is generated from in the siurce files (yup! that one eluded me
as well....).

---------------------------------------------------------------
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["Layout3:_ctl0"];
}
else { //************************ Error on this line... theform =
document.Layout3:_ctl0;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top