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
How do I refresh a part of my website?
-
- New Member
- Posts: 6
- Joined: Wed Sep 07, 2011 5:14 pm
Re: How do I refresh a part of my website?
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");
http://api.jquery.com/category/selectors/
$("#mydiv").html("new content");