Paul Butcher wrote:
> ...
>
> But that's no help if it's "general" Javascript which throws an  
> exception.
>
> If you (or anyone else) can suggest an alternative to window.onerror  
> which achieves the desired result, I will be forever grateful!
>
> Thanks in advance,
>
> Paul.
>   
It appears that remote error logging is a great application of 
window.onerror :
http://sleepyhead81.blogspot.com/2005/08/javascript-error-logging-with-ajax.html

You're best bet may be to continue to figure out why the callback isn't 
working when Prototype is loaded.  You could try
Event.observe(window, 'error', errorHandler);

One possible conflict I can think of is the properties that Prototype 
adds to Function.prototype or window.  You could try getting 
window.onerror to fail by adding those properties one at a time.

Also, what happens if you attach the window.onerror callback /before/ 
prototype is loaded?

- Ken


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to