On 15/01/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


If there is a single mistake on any of the lines in the onSuccess
anonymous function, the JS appears to stop processing, and not a single

What methodology/function/voodoo can I use to get JS errors to occur
when the anonymous function goes belly up?  I'm using an RC of the 1.5
version of Prototype to get the automatic JSON header parsing
(controlled environment, not a public site).


Well, a bit of digging later (darn searches for the wrong item, Venkman
debugger++), I've found that I can declare onException:
function(request,transport) and get access to transport.message for telling
me what went wrong.  Hopefully exceptions won't be common in the code, but
I'll leave the handler in anyway, and make it do something nice.

--~--~---------~--~----~------------~-------~--~----~
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