Jump to content

page reload on new post by someone else


xXREDXIIIXx

Recommended Posts

I basically have this game going with my friend (a quick website i made) called word association.

 

basic idea: Potato > Chips > Crisps > Snack > Biscuit    etc...

 

If anyone is familiar with facebook's live feed thats exactly what I want for it to just pop up the new posts as there is only 2 people playing this game I dont think it should be too hard to code :)

 

I know this a php forum and i'll probably have to use some ajax but since im relatively new to ajax can anyone point me in right direction?

Link to comment
https://forums.phpfreaks.com/topic/189034-page-reload-on-new-post-by-someone-else/
Share on other sites

You could use the ajax function synchronously to post to a php file every such and such amount of minutes and if anything is changed to reload the current page. Search for .ajax and go check in the ajax forums. You might get better responses there :)

 

or if it's just a simple change of the display of something you could set it to change the html in a div every so often so that it updates without having to reload the entire page.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.