Hi everyone,
I have found a way to cancel an Ajax.Request. Just wanted to know if
there is an already solution for this, or a better one?
Here is the code:
var axConnection;
new Ajax.Request(''sample.php'', {
onCreate: function(request)
{ axConnection = request; },
});
axConnection.transport.abort();
PS: When I abort the connection the way above, Ajax.Request fires
onSuccess event. Is there a way to avoid that?
Thank you!
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---