Results 1 to 5 of 5

Thread: Top Link possibly causing page to refresh

  1. #1
    Join Date
    Dec 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Top Link possibly causing page to refresh

    I use a jump to top script i got here from a long time ago and have modified it a little. but what i have changed shouldn't of affected what the problem is im experiencing. or more of some of my IE users.

    Only Some of my IE users while browsing my forums will have the page constantly refreshing on them. Bugging me because i can not get it to happen. My host can not get it to happen. Only a few IE users can.
    http://lordsofclantribe.com/forums/jumptop.js

    reading the script i saw this bit of code
    Code:
    function regenerate(){
    window.location.reload()
    }
    is it possible that the script could be causing these page refreshes? It does it everywhere on my forums and this is the only javascript that is running across the whole forums at all times.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In the script you furnished, that function will only fire under a browser which supports document.layers which IE does not but perhaps IE Mac does. Find out if these users are Mac users. The document.layers test is supposed to allow only NS4. However, even in IE6 for the pc, if you were to have an image with the name 'layers', if(document.layers) would return [object] and the code would fire if triggered*. If you were to have a form with this name, this will also cause it to return [object] and the event will fire if triggered*.

    *To actually trigger you would need this named object and the user would have to resize the browser window, then it would fire, so perhaps this is why it is hard to duplicate.

    Still, without seeing your pages and, more specifically, the problem in action, it is hard to say with any certainty if this script is the cause or not. I'd look into the possibility of a form and/or an image somehow having or acquiring that name though, because that would definitely do it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    they are all pc users. for one they say to that it happens in IE6 and i know 95% of them and what systems they run.

    If you want to view my forums you can here:
    http://lordsofclantribe.com/forums/index.php

    It is hard to get the problem in action when i nor our host can get it to happen and only a few users do.

  4. #4
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default Refreshing for me...

    Hey i really wouldn't have a clue as to how to help on this one... but I did go to the page in question and I did what John suggested... and resized the window... and sure enough the page refreshed. That's the only time it would do it though. Good Luck.

    *Edit* I am running IE 6 and Windows XP on a regular old PC

  5. #5
    Join Date
    Dec 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    it should refresh when your resize. and only when you resize. this is to keep the top link in lower right in the right place.

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
  •