Hello,
I am trying cancel an ajax request when a user clicks a close icon.
This is what I am putting in my ajax request object:
onLoading: function(transport) {
Event.observe('stop_load','click',transport.abort)
},
But it doesn't do anything at all, it doesn't seem like the event is
being captured. I've tried using function(e) {alert 'clicked'} instead
of the abort call, but that never gets called either.
The code for the close icon is <img src="images/close.gif" border="0"
id="stop_load">
What am I doing wrong?
Thanks for the help,
Julie
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---