By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,075 Members | 798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,075 IT Pros & Developers. It's quick & easy.

Retrieving AJAX container element name?

P: 7
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, 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:

Expand|Select|Wrap|Line Numbers
  1. Ajax.Responders.register({
  2.   onCreate:function() {
  3.     if($('busy') && Ajax.activeRequestCount > 0) {
  4.       // show the loading dialog
  5.     }
  6.   }
  7. });
I would love to do something like alert(Ajax.Updater.container); but that does not work, does anyone know how to do this?
Jun 7 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
The container is passed as the first parameter to Ajax.Updater.
Jun 7 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.