What is the exception being fired? onException is an assignable
callback that accepts two arguments, the first being the actual
Ajax.Request object and the second being the exception that was
thrown. Alert that exception and let us know what it is and maybe
we'll be able to better solve your problem.

Example:

new Ajax.Request('index.html',{
   method: 'get',
   onException: function(req,exception) { alert(exception); }
});

-E

On 3/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi Group,
>              In my javascript, I am using consecutive Ajax.Request.
> First Ajax.Request works perfectly but in case of second Ajax.Request
> method call, it generates exception and it goes to onException: block.
> I am not sure why such exception occurs. Any input on how to get rid
> of such exception...
>
> - R
>
>
> >
>


-- 
Eric Ryan Harrison

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