Closed (fixed)
Project:
Javascript Tools
Version:
master
Component:
Proposed new addition
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2006 at 08:13 UTC
Updated:
20 Mar 2007 at 17:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedyes, i'd like this as well, and i'm prepared to put some time in to implement it.
i'm working on a chatroom module, where it would be great to hook into the existing who is online block to enable starting chats.
Comment #2
jacauc commentedExcellent! :D
Very happy to hear i'm not the only one looking for this.
I used Joomla before and they had a module that does this... since I switched back to drupal, this is the only nicety I miss.
Comment #3
Crell commentedI'd suggest the best way to do this is to make it possible for any arbitrary block to reload periodically. The contents of that block are then Ajax-requested in the background and plopped into the block div in place of the old content. That could potentially even be a contrib module that adds a "dynamically reload every X minutes" field to the block configure page via Forms API.
As I don't know much of anything of Drupal's Ajax functionality at the moment I can't be of much more help than that, but that's how I'd recommend implementing it. :-) It probably wouldn't even need to touch core; a contrib module could do it all.
Comment #4
jacauc commentedwell... I had a look on google again to see if I could locate the mambo module again and have a look at how it was done...
Seems like that project has completely disappeared from the web.
Luckily I still had the files in an old backup on my server...
I'm just uploading this as an example of how it was done in mambo... might be useless... might be helpful... Defnitely worked well!
That module works with one php file (attached) and one XML file:
Is this illegal to share this? It is under GPL after all..
If it is illegal or not encouraged to copy examples from other open source projects, I will remove this..
might be useful
Cheers
jacauc
Comment #5
jacauc commented...Anyone else interested here?
This would be such a fun and useful module!
Comment #6
scroogie commentedCurrently there is work in progress to upgrade the javascript stuff in Drupal. In future Drupal will integrate jQuery from jQuery.com. When the integration is done, I think it would be very easy to change the block to asynchronous updates.
Comment #7
Crell commentedI think the jstools module package offers something like this. If it doesn't, that's where you'd want to do it, not in core. File a feature request with that module if necessary.
Comment #8
jacauc commentedPlease see the request above.
Comment #9
nedjoFunny you should ask. I was working for the first time on loading blocks over the weekend. I've just sketched in and committed a first cut at how to ajax load blocks. It's working in trunk/head. More work needed, see issue http://drupal.org/node/118215. See block configuration for the option to automatically refresh (refresh is every five seconds).
Comment #10
(not verified) commentedComment #11
mehran007 commentedthanks for sharing this code. Could you guys post a tutorial on how to install this. I want to install it on free php hosting site .Do you guys think it will work on php supported site or do i need any other thing installed on hosting server?Looking forward for a reply.Thanks