blufish Posted June 2, 2008 Share Posted June 2, 2008 Hey guys, I've been working on a chat script for my site, and I want it to refresh without any flicker on the page. I've been searching for this for a long time, but I can't find anything (except that it can be done with AJAX). Can any of you tell me how this can be used to quickly and without a flicker refresh a php page. I don't want a script I want some tags to look up and all that (I like to do my code entirely by myself.) Thanks Quote Link to comment Share on other sites More sharing options...
haku Posted June 3, 2008 Share Posted June 3, 2008 You can do it with AJAX. Basically you want to create an http request object, and use that to access your script in the background, then have that backgrounds script return the necessary details to your browser. You then use javascript to display that information in your browser. It's not the easiest thing, though with some javascript knowledge and knowledge of a serverside language, its not so hard either. Generally you have three files - your main file that is visible on the client computer. Then you have a javascript file that interacts in the background with the server, and finally you have the file on the server that does whatever you want it to do, sending data back to the javascript. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.