Home All Groups Group Topic Archive Search About

RE: java script error on postback

Author
5 Apr 2005 5:53 PM
ShepardBerry
Did you ever figure out what is going on here?  I'm getting the same error
however it's only when using the WebBrowser control.  The actual IE page by
itself doesn't give me the error.

Thanks for any help.
Shepard

Show quoteHide quote
"Cosimo Galasso" wrote:

> I get a java script error on Internet Explorer when changing the index of a
> drop down list control inside a form.
> The error is: __EVENTTARGET is null or is not an object.
>
> The java script code is auto generated by the framework library, and the
> error is in the following function:
>
>
> <script language="javascript" type="text/javascript">
> <!--
>     function __doPostBack(eventTarget, eventArgument) {
>         var theform;
>         if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
>             theform = document.Form1;
>         }
>         else {
>             theform = document.forms["Form1"];
>         }
>         theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
>         theform.__EVENTARGUMENT.value = eventArgument;
>         theform.submit();
>     }
> // -->
> </script>
>
> The error is on the line: theform.__EVENTTARGET.value =
>     eventTarget.split("$").join(":");

Author
7 Apr 2005 10:19 AM
Cosimo Galasso
I solved the problem with Aspnet_regiis.exe.
Probably asp.net was not installed prooperly on my server machine.

Show quoteHide quote
"ShepardBerry" wrote:

> Did you ever figure out what is going on here?  I'm getting the same error
> however it's only when using the WebBrowser control.  The actual IE page by
> itself doesn't give me the error.
>
> Thanks for any help.
> Shepard
>
> "Cosimo Galasso" wrote:
>
> > I get a java script error on Internet Explorer when changing the index of a
> > drop down list control inside a form.
> > The error is: __EVENTTARGET is null or is not an object.
> >
> > The java script code is auto generated by the framework library, and the
> > error is in the following function:
> >
> >
> > <script language="javascript" type="text/javascript">
> > <!--
> >     function __doPostBack(eventTarget, eventArgument) {
> >         var theform;
> >         if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
> >             theform = document.Form1;
> >         }
> >         else {
> >             theform = document.forms["Form1"];
> >         }
> >         theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
> >         theform.__EVENTARGUMENT.value = eventArgument;
> >         theform.submit();
> >     }
> > // -->
> > </script>
> >
> > The error is on the line: theform.__EVENTTARGET.value =
> >     eventTarget.split("$").join(":");
Author
7 Apr 2005 10:19 AM
Cosimo Galasso
I solved the problem with the command line tool Aspnet_regiis.exe
Probably asp.net was not properly installed in iis.

Hi

Show quoteHide quote
"ShepardBerry" wrote:

> Did you ever figure out what is going on here?  I'm getting the same error
> however it's only when using the WebBrowser control.  The actual IE page by
> itself doesn't give me the error.
>
> Thanks for any help.
> Shepard
>
> "Cosimo Galasso" wrote:
>
> > I get a java script error on Internet Explorer when changing the index of a
> > drop down list control inside a form.
> > The error is: __EVENTTARGET is null or is not an object.
> >
> > The java script code is auto generated by the framework library, and the
> > error is in the following function:
> >
> >
> > <script language="javascript" type="text/javascript">
> > <!--
> >     function __doPostBack(eventTarget, eventArgument) {
> >         var theform;
> >         if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
> >             theform = document.Form1;
> >         }
> >         else {
> >             theform = document.forms["Form1"];
> >         }
> >         theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
> >         theform.__EVENTARGUMENT.value = eventArgument;
> >         theform.submit();
> >     }
> > // -->
> > </script>
> >
> > The error is on the line: theform.__EVENTTARGET.value =
> >     eventTarget.split("$").join(":");