Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Quick, silent refreshing. Possible?

    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

  • #2
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by xGIHavoc View Post
    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 Code:
    <?php
    header
    ('refresh: 3; url=login.php');
    ?>
    this will load a page after 3 seconds

  • #3
    New Coder
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    2
    Thanked 3 Times in 3 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •