I've tried a few different things to accomplish this, all without success so far.
Here's what I have;
- A page on the site has 3 elements that need to be 'dynamically' updated. These are simple counts (notifications, messages, updates)
- At the moment, I'm using the jHeatbeat jQuery plugin (http://www.jasons-toolbox.com/JHeartbeat/
) to run the update script (i_updater.cfm). This script queries the database and puts the relevant count data into a session variable. As jHeartbeat also allows some data to be returned to a DIV, I currently have it successfully updating the 'notifications' div.
- There are 2 further divs I need to update (preferably at the same time, rather than polling the server 3 times unnecessarily). Again, these just need to be updated with a session variable - no fancy content, images etc.
I also tried simply adding multiple jHeartbeat instances, however that would only ever load up the last one (i.e 3 instances, the first 2 were ignored). However, even if I had that working, it wouldn't have been preferable.
Any pointers much appreciated!