How do I refresh a part of my website?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Coolepeter
New Member
New Member
Posts: 6
Joined: Wed Sep 07, 2011 5:14 pm

How do I refresh a part of my website?

Post 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
sirber
Forum Members
Forum Members
Posts: 12
Joined: Tue Apr 24, 2012 2:41 pm
Location: Québec, Canada

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

Post 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");
Post Reply

Return to “The Lounge”