iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-11-2007, 11:56 PM
WebProWorld Member
 
Join Date: Oct 2005
Location: Asheville, NC
Posts: 28
docholiday RepRank 0
Default Retrieving AJAX container element name?

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:

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?
Reply With Quote
  #2 (permalink)  
Old 06-12-2007, 09:21 AM
DaveSawers's Avatar
WebProWorld Veteran
 
Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 492
DaveSawers RepRank 3DaveSawers RepRank 3
Default Re: Retrieving AJAX container element name?

I'm always interested in different ways of doing things so thanks for the hint that this Ajax wrapper from Prototype exists.

As to your specific question, why not ask it on the Prototype user forum?
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
  #3 (permalink)  
Old 06-12-2007, 02:59 PM
WebProWorld Member
 
Join Date: Oct 2005
Location: Asheville, NC
Posts: 28
docholiday RepRank 0
Default Re: Retrieving AJAX container element name?

Hi DaveSawers,

I wasn't aware of that forum. I cannot find it in the list - do you have a direct link?
Reply With Quote
  #4 (permalink)  
Old 06-12-2007, 05:36 PM
DaveSawers's Avatar
WebProWorld Veteran
 
Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 492
DaveSawers RepRank 3DaveSawers RepRank 3
Default Re: Retrieving AJAX container element name?

Ruby on Rails: Spinoffs | Google Groups
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a CSS Site within a centered container div technica Graphics & Design Discussion Forum 20 01-09-2006 06:04 AM
Retrieving text form a site for re-use venividi Web Programming Discussion Forum 0 11-22-2005 08:04 AM
CSS Container not doing its job richkoi Graphics & Design Discussion Forum 2 10-08-2005 08:05 PM
Retrieving Yahoo Email? razsports Web Programming Discussion Forum 1 02-18-2005 01:56 PM
Crazy container div trouble JayDrake Graphics & Design Discussion Forum 9 05-06-2004 07:45 PM


All times are GMT -4. The time now is 09:31 PM.



Search Engine Optimization by vBSEO 3.3.0