|
-
Jan 15th, 2009, 10:49 AM
#1
Thread Starter
Frenzied Member
[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?
-
Jan 17th, 2009, 05:57 AM
#2
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.
-
Jan 17th, 2009, 06:22 AM
#3
Thread Starter
Frenzied Member
Re: Firefox and IE on history.go('URL')
-
Jan 17th, 2009, 06:24 AM
#4
Thread Starter
Frenzied Member
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.
-
Jan 18th, 2009, 05:55 AM
#5
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
-
Jan 18th, 2009, 08:31 AM
#6
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?
-
Jan 19th, 2009, 12:27 AM
#7
Re: [RESOLVED] Firefox and IE on history.go('URL')
 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
-
Jan 24th, 2009, 06:14 AM
#8
Thread Starter
Frenzied Member
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.
-
Jan 24th, 2009, 06:15 AM
#9
Thread Starter
Frenzied Member
Re: [RESOLVED] Firefox and IE on history.go('URL')
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|