auto refresh data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

auto refresh data

Post by aceconcepts »

Hi,

I have a web page (diary) which displays records from a database.

I have another page (selector, that acts like a pop-up window) that allows a user to select which records appear in 'diary'.

When the user selects the records they want to appear, how can I retrieve the records in 'diary' without having to click Refresh?

Thanks.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

There's two ways around a refresh: do everything on the clientside, or use an AJAX solution. Which you use depends on how much data there is and how much traffic it'll get.

Either way you'll need some pretty decent Javascript skills.
Post Reply