...

View Full Version : Quick, silent refreshing. Possible?



xGIHavoc
05-03-2009, 09:32 PM
I am designing a script in which needs to be updated to see interactions other users have made. Is there any way to refresh the page silently and timely without the involvement of AJAX? If there is no way, is the idea relatively simple? I don't know anything about AJAX. :x

nitestryker
05-03-2009, 10:15 PM
I am designing a script in which needs to be updated to see interactions other users have made. Is there any way to refresh the page silently and timely without the involvement of AJAX? If there is no way, is the idea relatively simple? I don't know anything about AJAX. :x

I am not sure if this is what you mean but here is an example using the header function



<?php
header('refresh: 3; url=login.php');
?>
this will load a page after 3 seconds

xGIHavoc
05-04-2009, 12:04 AM
Right idea, however, it isn't silent. AJAX can refresh certain elements of a page without heavy bandwidth usage and the visibility of a refresh (flicker, response time). I'm doing it for a card game by the way. No point in starting a new thread, but I have another question. For card rankings, I made an array to list all of the cards and made a string for each kind (Aces per say) with a reference to it's position in the array. How can I distinguish a 3 of a kind/4 of a kind based on these strings? I probably should do it another way since I will eventually be using the shuffle function to randomize the order. Suggestions?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum