Page 1 of 1

How do I refresh a part of my website?

Posted: Fri Mar 16, 2012 10:28 pm
by Coolepeter
Hello,

I am currently building an radio website.
Site: no-talking.no-ip.org.
Everything is working great. Except that I can not select parts to refresh. I have a "now playing", "shout box" and "server status" that needs refreshing. And I don't want to refresh the whole page, because it is kinda annoying when you are listening to the radio and suddenly it stops to refresh the page...
Is there a way to do that? I tried this solution: http://www.brightcherry.co.uk/scribbles ... x-seconds/
But it didn't work.

Can somebody help me?

Thanks you in advance,
Peter

Re: How do I refresh a part of my website?

Posted: Wed Apr 25, 2012 2:40 pm
by sirber
you can ajax your server with jquery and update only ther selected parts (using a selector in javascript) and update the needed part.

http://api.jquery.com/category/selectors/

$("#mydiv").html("new content");