SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: delay code

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Sep 2007
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    delay code

    I have this code im using that refreshes the page with no flickering of the images so it looks smooth, the problem in ie im having is the ticking noise everytime it refreshes, how can i stop the noise?

    <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.3)" />
    <script type="text/javascript">
    <!--
    function delayer(){
    window.location = "usersonlineframe.php?room=<?= $room ?>&type=<?= $type ?>"
    }
    //-->
    </script>
    <body onLoad="setTimeout('delayer()', 2000)">
    Animated Chatrooms - www.121chatrooms.net

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,185
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)

    refresh noise

    I imagine the noise you hear is the browser's behavior. That is, the script is "clicking a link" to the new page. You could take care of this for your own browser easily enough, but I think you'll need to develop another technigue to do what you're doing if you want to eliminate it for others.
    Maybe an AJAX call that modifies the DOM without a refresh?

  3. #3
    SitePoint Guru
    Join Date
    Sep 2007
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there must be another way apart from ajax with the same code i want to use.
    Animated Chatrooms - www.121chatrooms.net

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,185
    Mentioned
    191 Post(s)
    Tagged
    2 Thread(s)

    users online

    It wouldn't be as "up to the minute", but you could get the number of online users from a database so that every new page would have the same value as when it loaded.


Bookmarks

Posting Permissions

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