This is slightly off topic, but if anybody can solve this, it'll be this
mailing list.  The basic question is:  Is there a way to catch an error
thrown in an external js library so that I can continue parsing the
remaining javascript on the page?

The more detailed version is this:  I'm using DotNetNuke (DNN) for  my
website.  A module that I'm using include Scriptaculous, DotNetNuke uses a
mixture of jQuery and MS AJAX.  To avoid namespace pollution, the DNN folk
have used the jQuery prefix for jQuery functions and the $ shortcut for MS
AJAX (actually, I think this is the only way you can do this).  The third
party module uses $ to reference Scriptaculous.

I think we all know where this is going:  the namespace pollution of $
causes an error to be thrown very early on, leaving parts of my page
unstyled (cornerz), dates unformatted, etc, etc, etc.  The good news - for
me - is this only happens when an admin is logged in.

My thought would be to catch the errors and continue parsing *my *portion of
the page.

Thanks in advance,
Dave

Reply via email to