Is there any possible way (I'm using prototype framework) to glean
what the name of the container element to be updated (using
Ajax.Updater) is?
I have appended at the bottom of prototype.js a function that shows a
loading dialog when any AJAX interaction takes place (I use this all
the time, it's AMAZING, feel free to use it, and if you want the rest
just reply and I'll paste all the code), but I need to cancel it for
one particular element and cannot figure out a way without knowing the
element name.
Here's the code:
Ajax.Responders.register({
onCreate:function() {
if($('busy') && Ajax.activeRequestCount > 0) {
// show the loading dialog
}
}
});
..... (more code)
I would love to do something like alert(Ajax.Updater.container); but
that does not work, does anyone know how to do this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---