xXREDXIIIXx Posted January 19, 2010 Share Posted January 19, 2010 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 More sharing options...
aeroswat Posted January 19, 2010 Share Posted January 19, 2010 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. Link to comment https://forums.phpfreaks.com/topic/189034-page-reload-on-new-post-by-someone-else/#findComment-998120 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.