Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2006, 08:27 AM
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default back frame

Hi,

I want that when I click on back button if browser, it shoudl open previous frame rather than previous URL. I need it on MacOS browsers like safari etc.

Or Do u have any idea how to capture the event when user click on browser's back button?

Any Idea?

Thanks,
Rama

 
Old December 6th, 2006, 12:30 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi Rama!!
try to use ,history object

Cheers :)

vinod
 
Old December 6th, 2006, 12:38 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

This should take you to the previous page:

opener.history.go(0);

FYI Frames behave very badly id not coded correctley. I advice against frames unless you have a specific purpose for them. IME they are being used less and less. For all the reasons why ask google 'why are frames so bad'

Wind is your friend
Matt
 
Old December 18th, 2006, 01:38 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi,
i want to findout same type question,
that i am doing one php shopping site, when i trying to go back using back, it is saying page expire, i ask my friends they says, if i use session it will. so how can i do this, this is my site, http://www.chitter-chatter.co.uk. is there anyway to go back.


surendran
(Anything is Possible)
http://ssuren.spaces.msn.com
 
Old December 18th, 2006, 05:25 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

This behaviour sounds like the browser is insisting the form variables be re-posted, is it? If so, this is normal browser behavior. I dont suggest it (IMO session variables should be used sparingley) however if you use them it will eliminate the browser insisting the form variables be re-posted.

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set one frame src from other frame akumarp2p ASP.NET 1.x and 2.0 Application Design 2 March 13th, 2007 04:13 AM
parsing form data from frame to other frame audio-catalyst Classic ASP Basics 5 January 3rd, 2006 02:57 PM
Call right frame Page_Load event from left frame. ochanarachel Classic ASP Basics 0 January 28th, 2005 05:13 AM
Refresh a frame from another frame czambran Javascript 3 October 21st, 2004 11:20 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.