473,721 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

frames and back action

Hello, I have a page defined like this:

<html>
<frameset>
<frame src="./topone.pl">
<frameset>
<frame src="./frame1.pl">
<frame src="./frame2.pl">
</frameset>
</frameset>
</html>

Then I click in one link in the first page and the mainpage, frame1
and frame2 change the page show.
The problem is that when pressing the "back" action, just the frame2
change, than I need to press other two times the "back" to arrive in
the original page/frames.

Does exist a back action (-3)? I tried the code:
window.onback = history.back(-3);
without success (FF e IE7)

Any help will be appreciate
Thanks in advance
Nov 18 '08 #1
7 2348
Flyzone schreef:
Hello, I have a page defined like this:

<html>
<frameset>
<frame src="./topone.pl">
<frameset>
<frame src="./frame1.pl">
<frame src="./frame2.pl">
</frameset>
</frameset>
</html>

Then I click in one link in the first page and the mainpage, frame1
and frame2 change the page show.
The problem is that when pressing the "back" action, just the frame2
change, than I need to press other two times the "back" to arrive in
the original page/frames.
Hi,

Yes, that is because the browser thinks you want to go back if you hit
the BACK button.
What if you actually wanted to go back only from your last click in some
frame, and the browser decides to go back in all frames? What is some of
those frames don't have a history to go back to?

What you see is normal and desired behaviour.
>
Does exist a back action (-3)? I tried the code:
window.onback = history.back(-3);
without success (FF e IE7)

Any help will be appreciate
Thanks in advance
If you MUST sync your frames somehow, you'll have to build that
explicity in JavaScript. But of course your pages will fail when a user
has it disabled.
That is about 10% of the websurfers I think.
Warning: Thomas Pointedears once told me that 138% of the statistics you
find on the web are flawed. ;-)

Solution?
Don't use frames and avoid this whole mess. Or make a working syncing
mechanism in JavaScript.

Regards,
Erwin Moller
--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
Nov 18 '08 #2
On 18 Nov, 19:15, Erwin Moller
<Since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
Warning: Thomas Pointedears once told me that 138% of the statistics you
find on the web are flawed. ;-)
Will be used by 3 users in a intranet...no problem for that :P
Don't use frames and avoid this whole mess. Or make a working syncing
mechanism in JavaScript.
I cannot avoid frames (many reasons for this), but I however have the
problem with the back action...
From msdn website seems not exist and if I try to use it in a
webpage,
the action is made when loading the page.
So..how to intercept the back button of the browser?

Thanks...
Nov 19 '08 #3
Flyzone schreef:
On 18 Nov, 19:15, Erwin Moller
<Since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
>Warning: Thomas Pointedears once told me that 138% of the statistics you
find on the web are flawed. ;-)

Will be used by 3 users in a intranet...no problem for that :P
>Don't use frames and avoid this whole mess. Or make a working syncing
mechanism in JavaScript.

I cannot avoid frames (many reasons for this), but I however have the
problem with the back action...
From msdn website seems not exist and if I try to use it in a
webpage,
the action is made when loading the page.
So..how to intercept the back button of the browser?
Hi,

I cannot follow everything you wrote, but I can maybe help with the last
question: "So..how to intercept the back button of the browser?"

Have a look at the unload event handler, eg:
<body onUnLoad="alert ('bye');">

Maybe you can do the syncing in there?

Regards,
Erwin Moller
>
Thanks...

--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
Nov 19 '08 #4
Flyzone wrote:
On 18 Nov, 19:15, Erwin Moller [...] wrote:
>Warning: Thomas Pointedears once told me that 138% of the statistics you
find on the web are flawed. ;-)

Will be used by 3 users in a intranet...no problem for that :P
An intranet does not exist in a vacuum either.
HTH

PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Nov 19 '08 #5
On 19 Nov, 15:13, Erwin Moller
<Since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
Have a look at the unload event handler, eg:
<body onUnLoad="alert ('bye');">

Maybe you can do the syncing in there?
Just a little problem....the first frame is reloaded itself
every 5 seconds....the onUnload is activated also on this...
I made a little more investigation and the onback action
doesn't exist (in msdn library)...

I could solve putting a back-button in the first frame with:
onClick=\"top.h istory.go(-3);

But I would like to intercept the back button of the browser
(for the backspace I don't have this problem).

Well..maybe I have missed somethings in the pre-project
thinking to use the frames :P
Nov 20 '08 #6
Flyzone schreef:
On 19 Nov, 15:13, Erwin Moller
<Since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
>Have a look at the unload event handler, eg:
<body onUnLoad="alert ('bye');">

Maybe you can do the syncing in there?

Just a little problem....the first frame is reloaded itself
every 5 seconds....the onUnload is activated also on this...
I made a little more investigation and the onback action
doesn't exist (in msdn library)...

I could solve putting a back-button in the first frame with:
onClick=\"top.h istory.go(-3);

But I would like to intercept the back button of the browser
(for the backspace I don't have this problem).

Well..maybe I have missed somethings in the pre-project
thinking to use the frames :P
Hi,

Well, in all honesty, I don't think anybody in here can help you since
we don't know the requirements of your webapplication. SO we cannot help
you with the syncing of the contents in the frames.

Personally I am also inclined to advise you to make a better design. (Or
your bosses). Syncing frames sounds to me like bad design.
There are probably better, more robust, ways to solve the problem at hand.

Regards,
Erwin Moller

--
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
Nov 20 '08 #7
On Nov 20, 2:41*am, Flyzone <flyz...@techno logist.comwrote :
On 19 Nov, 15:13, Erwin Moller

<Since_humans_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
Have a look at the unload event handler, eg:
<body onUnLoad="alert ('bye');">
Maybe you can do the syncing in there?

Just a little problem....the first frame is reloaded itself
every 5 seconds....the onUnload is activated also on this...
I made a little more investigation and the onback action
doesn't exist (in msdn library)...

I could solve putting a back-button in the first frame with:
onClick=\"top.h istory.go(-3);

But I would like to intercept the back button of the browser
(for the backspace I don't have this problem).

Well..maybe I have missed somethings in the pre-project
thinking to use the frames :P
Yes, like the last ten years or so.
Nov 20 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1982
by: Trvl Orm | last post by:
I am working with 2 frames, Left and Right and the main code is in the left frame, which has been attached. Can someone please help me with this code. I am new to JavaScript and can't figure it out. What needs to happen is this: On the left frame you should have a series of buttons, which when pushed makes things happen on the right frame.
14
2165
by: TrvlOrm | last post by:
OK. After much playing around, I managed to get my frame page this far.. see code below. BUT...there are still errors with it, and what I would like to have happened is this: 1) On the Left Frame (File LeftEx8_2.html) a series of buttons, which when clicked prompt the user to enter information for background color, text color, link color, title and some text.
1
3233
by: Justin | last post by:
Hi, I have a simple frameset defined: ---------------- index.html ---------------- <FRAMESET COLS = "225,*"> <FRAME NAME = "a" SRC = "one.html"> <FRAME NAME = "b" SRC = "one.html"> </FRAMESET>
18
2142
by: Jonathan Carmichael | last post by:
I am building a website for the first time. In attempting to validate my frameset html file I came across the following URL http://www.w3.org/TR/1999/REC-html401-19991224/ The 3 errors I am getting are all regarding the following: <frameset rows="100,*" frameborder="0" border="0" framespacing="0"> The errors are:
11
2588
by: Jamie Dulaney | last post by:
I'm working on a website that uses frames. Some of the pages that belong in the 'main' frame (not the header (top) or contents (side)) need to be SSL encrypted. I have no problems in invoking these pages using SSL (within their respective frame). However, I would like the 'security lock' at the bottom to be present when the frame (main content frame) is showing a secured page. My hunch is that because the other two frames are not SSL...
4
5958
by: malambing57 | last post by:
How do I submit using framet set. I want the top frame to submit the form on my bottom frame when time is up. On my top frame, I have the following code; if((min == 1) && ((sec >= 8) && (sec < 9 ))) { document.frames.form1.action = "testBody2.asp"; document.frames.form1.target = "mainFrame"; document.frames.form1.submit(); }
3
1402
by: misra.manisha | last post by:
Hi, I am using frames (I know that its not a good practice, but I have to). Each of these frames have separate form variables, all of which are needed in the parent frame. Now, the problem is that only one frame in the parent frame has a submit button. Is there any way in which I can submit the forms of other frames on click of the submit of this particular frame? I mean, is there any way in which I can access the forms in JSPs of...
10
2712
by: steve | last post by:
Hi All, My site has two frames, one with a menu system, one with the selected results. I can select a menu item and get the other frame to reflect that selection. But I want to select 'log out' from the menu and remove the menu sytem as well as putting a default welcome page in to 2nd frame. Any ideas will be gratefully received
2
1776
by: SiNi | last post by:
Hello. I am an italian student and I do not known javascript language. I need your help! I have built a web page with frames (left frame and main frame). In the left frames I have attach the code that you find below. I have a problem. because I am not able...when I choose a voice in the menu, the relative web page open in the left menu....where there is the menu; but
0
8730
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9131
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9064
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.