Results 1 to 6 of 6

Thread: Very odd behaviour

  1. #1
    Join Date
    Jan 2008
    Posts
    40
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default Very odd behaviour

    The coding for the links on this jump page are identical, except for the behaviour differs of three of them. The Library, The Archives, Links and Search This Site all work fine. But when the user clicks on the other three, Glossary, Bibliography and Finding a Teacher, here's what happens. The browser processes the proper link and then a second call is made to the original page, causing the page to blink and redraw without change.

    I've tried absolute addressing and that also doesn't work. Same phenomena in both the Safari and FireFox browsers on a Mac.

    Oddest of all, when I attempt to go directly to one of these pages, for instance, placing the full address in both browsers, http://www.morleychalmers.com/Mostly...liography.html, this also bounces back to the original page. But when I tested the above link when previewing this posting, it did work. So I know the address is correct and the page is indeed there. Having successfully gone to the page, I now copy the URL in the browser, create a new browser window, paste the URL, click enter, only to find the page bounces back. Very strange.

    Anyone spot what I'm missing? Appreciated.

  2. #2
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    Can we see Glossary.html and the others? Humor me and you win a prize! Lol, just kidding. I don't see anything that stands out, but please do post the pages content.

    Tim

  3. #3
    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

    Quote Originally Posted by TimFA View Post
    Can we see Glossary.html and the others? Humor me and you win a prize! Lol, just kidding. I don't see anything that stands out, but please do post the pages content.

    Tim
    They are available online, no need to clutter up a post with the code.

    I'd try getting rid of this (from portalMenuItems.js):

    Code:
    //Set variable for the Back menu item.
    
    var back1=history.go(-1);
    or changing it to a string:

    Code:
    //Set variable for the Back menu item.
    
    var back1='history.go(-1);';
    Perhaps even making it (I think this would be the best):

    Code:
    //Set variable for the Back menu item.
    
    var back1='javascript:history.go(-1);';
    But, where it is used should then be:

    Code:
    ["Go Back", back1, ""],
    - John
    ________________________

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

  4. #4
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    I couldn't find them? How am I supposed to view them I was being thrown back...I guess to turn off JavaScript never occurred to me.

  5. #5
    Join Date
    Jan 2008
    Posts
    40
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default

    As recommended by John Scheuer, I've made two changes to the portalMenuItems.js file.

    Quote Originally Posted by jscheuer1 View Post
    Code:
    //Set variable for the Back menu item.
    var back1='javascript:history.go(-1);';
    But, where it is used should then be:

    Code:
    ["Go Back", back1, ""],
    These two changes resolve the problem. I haven't the foggiest idea why just three of the items failed and the others worked. The only pattern I could perceive is that bibliography.html, glossary.html and findingATeacher.html are all higher alphabetically than the rest.

    At any rate everything now works and the code is likely more robust.

    Much thanks, all.

  6. #6
    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

    The difference was that the 'problem' pages had that menu associated with them. The 'good' pages did not.
    - John
    ________________________

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

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
  •