JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 26th, 2001, 03:39 PM
hoffa hoffa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 55 hoffa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
javascript history function

I'm trying to setup a webpage with two frames, a top and a bottom. The top frame has an image that has the IE forward and back bottons saved as images. The bottom can be whatever. The standard IE toolbar will be replaced by my version of it in the topframe.

I am using the javascript:history.go(-1) function for the back button and am targeting the bottom frame. The problem I am having is that, I believe the history back bottun is only looking at the history of the top frame. I want it to look at the history of the bottom frame history so that if a user clicks on the back button on the top frame, it will load the previous url from the bottom frame.

How can I get this to work?

Reply With Quote
  #2  
Old May 26th, 2001, 03:58 PM
epl epl is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Dublin
Posts: 413 epl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 18 m 18 sec
Reputation Power: 13
have you tried window.frames.bottomFrameName.history.go(-1)??
(or just window.frames[1].history.go(-1)

Reply With Quote
  #3  
Old May 26th, 2001, 04:41 PM
hoffa hoffa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 55 hoffa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
reply

I just tried the second one and target=bottomframe. I will try your suggestion and let you know if it works.

Reply With Quote
  #4  
Old May 26th, 2001, 05:01 PM
hoffa hoffa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 55 hoffa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
not working

It seems to be taking me back when I click the icon, but I'm getting a 404 error. I also have another link I found which seems to be taking me back to a certain url.
I have a link that says "back" and when I click on it, it sometimes takes me to a certain url. It is very similiar to the code you meantioned but slightly different.

Last edited by hoffa : April 14th, 2004 at 09:45 AM. Reason: dead link

Reply With Quote
  #5  
Old May 26th, 2001, 05:15 PM
hoffa hoffa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 55 hoffa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
local

It looks like it will work with local links, but not http:// links such as http://www.yahoo.com

Reply With Quote
  #6  
Old May 29th, 2001, 02:42 AM
elisabeth elisabeth is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: India
Posts: 18 elisabeth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
could u try this way?
javascriptarent.frames.history.go(-1)
with regards
elisabeth

Reply With Quote
  #7  
Old May 29th, 2001, 03:01 AM
hoffa hoffa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 55 hoffa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
what

elisabeth,

What?

Reply With Quote
  #8  
Old May 29th, 2001, 09:13 AM
Void Void is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: The Netherlands
Posts: 200 Void User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
Send a message via ICQ to Void
Elisabeth meant:

javascript:parent.frames.history.go(-1)

:p is translated to a smiley

I disabled it in this post, so it should show up ok now

/* start anti frames rant */
Btw, frames and history don't really mix that well on all browsers. And most web designers freak out when you mention frames.
/* end anti frames rant */

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > javascript history function

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap