Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-01-07 01:08:24
- systyrant
- New Member
- Registered: 2006-12-18
- Posts: 8
Refreshing one part of the page?
I’m trying to add a section to my page that will display the current song I’m listening to. What I would like is the ability to refresh that one part of the page every five minutes or so without refreshing the entire page. The file that contains the music information is an XML file. My original thought was to write a plug-in, but I’m not sure I can make it refresh.
Any ideas on how this could be done?
Offline
#2 2007-01-07 02:49:33
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: Refreshing one part of the page?
Any database call triggered by the User means a full pagerefresh.
Even, if you pull in the content as a feed from your own site, doesn’t change that.
I think AJAX is the only way to do something like that.
( I might be wrong, but I believe that’s how it is)
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#3 2007-01-07 02:51:35
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Refreshing one part of the page?
You would have to use JavaScript.
Edit: Referring to Marios comment, some more info on AJAX here.
Last edited by Mary (2007-01-07 02:53:14)
Offline
Pages: 1