yeahit does.  I've been using it in my version for months.  I just thought
it might be too much to include in the core API. : )

Pascal wrote:

> I'll see if I can implement this error handling into the DynAPI.
>
> does it work crossbrowser? (ie4+ and NS4+)
>
> Pascal Bestebroer ([EMAIL PROTECTED])
> Software ontwikkelaar
> Oberon Informatiesystemen b.v.
> http://www.oibv.com
>
> > -----Oorspronkelijk bericht-----
> > Van: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]Namens Michael
> > Pemberton
> > Verzonden: donderdag 15 februari 2001 7:22
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: Re: [Dynapi-Dev] A handy DEBUG method
> >
> >
> > I've got an alternative method that caches the errors until
> > everything has
> > loaded and generates a error output page.  It can also be
> > told to display
> > javascript errors or even catch and not display javascript errors.
> >
> > DynAPI {
> >     errors : [],
> >     displayerrors : false, // indicates if you wish all
> > errors to be caught or
> > sent to the in-built js console
> >     errorHandler : function (msg, url, lno) {
> >         DynAPI.errors[DynAPI.errors.length] = [url,lno,msg];
> >         // if the page has already loaded, errors will be
> > alerted instead of
> > sent to the debug page
> >         if (DynAPI.loaded&&DynAPI.displayerrors)
> >             alert("Error in '" + url + "'.\nLine number: " + lno +
> > ".\nMessage: " + msg);
> >         return DynAPI.displayerrors;
> >     },
> >
> > // The following line is added at the end of the loadHandler:
> > if (DynAPI.errors.length&&DynAPI.displayerrors) DynAPI.errorOutput();
> >
> > // The following line is added at the end of the dynapi.js
> > onerror = DynAPI.errorHandler;
> >
> > --
> > Michael Pemberton
> > [EMAIL PROTECTED]
> > ICQ: 12107010
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010




_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to