Results 1 to 9 of 9

Thread: [RESOLVED] Firefox and IE on history.go('URL')

  1. #1

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Resolved [RESOLVED] Firefox and IE on history.go('URL')

    So I've been looking at history.go('URL') to reload a previuos page accessed by the user.

    It used to be history.go(-1) which works fine but sometimes it gets too deep. All i want was just to 'jump' back to the parent page without a trip to the server.

    Now, in IE i have managed to fix this using history.go('full URL') and setting it via referer and some tweaks.

    But in Firefox this doesn't work simply because it only takes a number.

    In some forums it was mentioned that netscape browsers support this property.

    Was there a reason the firefox chose not to implement this?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Firefox and IE on history.go('URL')

    You'll probably need to keep track of your 'offset' from the parent page and pass it from page to page, then get your javascript to read that from, say, the querystring or a hidden field.

  3. #3

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Firefox and IE on history.go('URL')

    c00l, thanks!

  4. #4

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: [RESOLVED] Firefox and IE on history.go('URL')

    I just found out yesterday that
    history.go('URL') on IE7 loads the Oldest page of the same url instead of the most recent one.

    so another reason not to use it.

  5. #5
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: [RESOLVED] Firefox and IE on history.go('URL')

    @ Oceanbelle,

    Is your question answered?

    @ Mendhak,

    If java-script is disabled then that will not work!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] Firefox and IE on history.go('URL')

    The entire question is based on the assumption that javascript is enabled.

    How would you do a history.go without javascript enabled?

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: [RESOLVED] Firefox and IE on history.go('URL')

    Quote Originally Posted by mendhak
    The entire question is based on the assumption that javascript is enabled.

    How would you do a history.go without javascript enabled?
    Well you could use the no script tags to put a message on the page to ell the user to enable javascript.

    Example:

    Code:
    <noscript>
    Please enable javascript in order to use this feature!
    </noscript>
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  8. #8

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: [RESOLVED] Firefox and IE on history.go('URL')

    i'm not really concerned on whether javascript is enabled or not. The app is internal, so the users should be using the features out of their box.

  9. #9

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: [RESOLVED] Firefox and IE on history.go('URL')

    Quote Originally Posted by Nightwalker83
    @ Oceanbelle,

    Is your question answered?
    Yes it has been answered. and the answer is not to use history.go('url') as it is not implemented the way I'd like it in IE and is not supported in other browsers as well.

Posting Permissions

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



Click Here to Expand Forum to Full Width