Hi,

Not sure if this is the correct location to post this, if not I'm sorry and can you please direct me to the correct place.

I have placed a link to Skype and MS Messenger in a block and when the block is displayed it shows my current status, online, busy etc.

Is there a way for me to have this block automatically updated, currently it is only done on a complete page refresh. I don't need to whole page updated only this one block so that any change in status is reflected on the site.

I have checked through various modules and I can find nothing which offers the functionality I need, I may have missed the one I need or it might not exist, I'm run both Drupal version 6 and 7 sites and would appreciate any pointers to modules or methods I might use.

Thanks in advance.

Dave

Comments

tabvn’s picture

Hello Dave

you can use javascript load that block each 5 secs or 10 secs...

create new page return with json ex: yoursite.com/page/skype

and on your current page:

<div id="skype-block-to-reload">
content here
</div>

create javascript functions like



$("#skype-block-to-reload").load('/page/skype',function(data){
 $(this).html(data);

});

if you want to reload each min or secconds you need read document about jquery interval or timer

Toan

david1409’s picture

.....really useful, I'll give that a try.

Cheers

Dave