Jump to content

AJAX no flicker refresh


blufish

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.