HighDots Forums  

Is it possible to open two frames with one URL?

Javascript JavaScript language (comp.lang.javascript)


Discuss Is it possible to open two frames with one URL? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
The Natural Philosopher
 
Posts: n/a

Default Is it possible to open two frames with one URL? - 12-14-2007 , 10:03 AM






...consider a framed set of windows. Menu items replace the content frame
preserving the menu frame. Easy peasy.

One menu item would ideally replace the content frame AND the menu frame
as well, to allow access to a new set of menus,.

Can you have a URL with two targets? or is it down to a javascript
onclick() handler to replace two windows using a hand crafted function?

Reply With Quote
  #2  
Old   
Randy Webb
 
Posts: n/a

Default Re: Is it possible to open two frames with one URL? - 12-14-2007 , 10:52 AM






The Natural Philosopher said the following on 12/14/2007 11:03 AM:
Quote:
..consider a framed set of windows. Menu items replace the content frame
preserving the menu frame. Easy peasy.

One menu item would ideally replace the content frame AND the menu frame
as well, to allow access to a new set of menus,.

Can you have a URL with two targets?
No.

Quote:
or is it down to a javascript onclick()
Pretty much.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


Reply With Quote
  #3  
Old   
The Natural Philosopher
 
Posts: n/a

Default Re: Is it possible to open two frames with one URL? - 12-14-2007 , 10:59 AM



Randy Webb wrote:
Quote:
The Natural Philosopher said the following on 12/14/2007 11:03 AM:
..consider a framed set of windows. Menu items replace the content
frame preserving the menu frame. Easy peasy.

One menu item would ideally replace the content frame AND the menu
frame as well, to allow access to a new set of menus,.

Can you have a URL with two targets?

No.

or is it down to a javascript onclick()

Pretty much.

TVM.



Reply With Quote
  #4  
Old   
rf
 
Posts: n/a

Default Re: Is it possible to open two frames with one URL? - 12-14-2007 , 09:50 PM




"The Natural Philosopher" <a@b.c> wrote

Quote:
..consider a framed set of windows. Menu items replace the content frame
preserving the menu frame. Easy peasy.

One menu item would ideally replace the content frame AND the menu frame
as well, to allow access to a new set of menus,.

Can you have a URL with two targets?
No, but a URL can point to an entirely new frameset, target="top",
specifying a new "menu" and a new "content".

Quote:
or is it down to a javascript onclick() handler to replace two windows
using a hand crafted function?
Not a javascript problem.

--
Richard.




Reply With Quote
  #5  
Old   
The Natural Philosopher
 
Posts: n/a

Default Re: Is it possible to open two frames with one URL? - 12-15-2007 , 03:39 AM



rf wrote:
Quote:
"The Natural Philosopher" <a@b.c> wrote in message
news:1197648181.68297.0 (AT) demeter (DOT) uk.clara.net...
..consider a framed set of windows. Menu items replace the content frame
preserving the menu frame. Easy peasy.

One menu item would ideally replace the content frame AND the menu frame
as well, to allow access to a new set of menus,.

Can you have a URL with two targets?

No, but a URL can point to an entirely new frameset, target="top",
specifying a new "menu" and a new "content".

Ah..I hadn't thought of that..

Quote:
or is it down to a javascript onclick() handler to replace two windows
using a hand crafted function?

Not a javascript problem.

No,. but a javascript solution..one could do two window.opens in a function?


Reply With Quote
  #6  
Old   
Randy Webb
 
Posts: n/a

Default Re: Is it possible to open two frames with one URL? - 12-15-2007 , 12:00 PM



The Natural Philosopher said the following on 12/15/2007 4:39 AM:
Quote:
rf wrote:
"The Natural Philosopher" <a@b.c> wrote in message
news:1197648181.68297.0 (AT) demeter (DOT) uk.clara.net...
..consider a framed set of windows. Menu items replace the content
frame preserving the menu frame. Easy peasy.

One menu item would ideally replace the content frame AND the menu
frame as well, to allow access to a new set of menus,.

Can you have a URL with two targets?

No, but a URL can point to an entirely new frameset, target="top",
specifying a new "menu" and a new "content".


Ah..I hadn't thought of that..
If you have server side processing, that is the best solution. You could
have each link point to the frameset and have two parameters. The menu
page and the content page file names. Then the server can return the
appropriate source for the frameset.

Quote:
or is it down to a javascript onclick() handler to replace two
windows using a hand crafted function?

Not a javascript problem.

No,. but a javascript solution..one could do two window.opens in a
function?
You can do 100 in a function if you wanted. The limit would be when you
crashed the system from too many open windows. The error message I got
from IE7 when opening 100 new windows was:

Not enough storage is available to complete this operation

window.open won't help you with frames though.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.