eventtarget is null or is not an object

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Cosimo Galasso (CosimoGalasso_at_discussions.microsoft.com)
Date: 11/19/04


Date: Fri, 19 Nov 2004 03:49:08 -0800

I install the framework SP1 as descrbed in the following article ... but i
still get the same problem.

Any suggestion ?

> Note on the bug:
> http://support.microsoft.com/default.aspx?kbid=817779

--
Thanks Karl
"Karl" <none> wrote in message news:OE2JU3QiEHA.2880@TK2MSFTNGP10.phx.gbl...
> This is a known bug in ASP.Net 1.1, there's a hotfix to fix it.
> Alternatively, you can write a simple  class to fix it.
> Note on the bug:
> http://support.microsoft.com/default.aspx?kbid=817779
>
> Server control to fix it:
>    public class NoBugForm : HtmlForm {
>       public override string UniqueID {
>          get {
>             string id = base.UniqueID;
>             return id.Substring((id.LastIndexOf(":") + 1));
>          }
>       }
>    }
>
>
> If you are building an application that'll go out to client, using the
> NoBugForm instead of a normal form is a safer bet unless you can guarantee
> they'll have that hotfix.
>
> Karl
>
> "Manoj Mathew" <manoj_mathew@persisten.co.in> wrote in message
> news:e5Uqt2OiEHA.712@TK2MSFTNGP09.phx.gbl...
> > 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
> >
> >
> >
>
>
 
 
 
    


Relevant Pages

  • Re: Background Color
    ... selectedDateId isn't a valid identifier..: ... > No javascript error. ... > "Karl Seguin" wrote: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Looking for some help
    ... with that background to fix it however. ... come for help but it IS a javascript ... the javascript console tells me: "adjustLayout is not defined" ...
    (comp.lang.javascript)
  • Re: New IE security hole
    ... > Javascript for a month or two," both because it would break needed ... Security researchers in favor of full and immediate ... > Microsoft always takes at least 45 days to test and release a patch. ... saying Microsoft needs 45 days to fix this is a load of cow "flap". ...
    (microsoft.public.security)
  • Re: Local files
    ... For the pages with javascript you will need to use MOTW to fix; ... Internet it will put up the don't want to allow ActiveX message bar at ...
    (microsoft.public.windowsxp.general)
  • Re: Display Problem in IE6 and IE7b2
    ... Instead, I get a scroll bar at the bottom, ... frames link. ... Do you know a fix for that RSS/Java problem? ... JavaScript is used to write the HTML. ...
    (comp.infosystems.www.authoring.html)