Difficulty loading pages in diferent frames

J

Joseph Mouhanna

I have a web site with four frames.

Frame 1 is called TopNav - initially loaded with the top navigation menu
(different GIFs)
Frame 2 is called SecNav - initially loaded with the secondary navigation
menu (different GIFs)
Frame 3 is called MainFrame
Frame 4 is called ExtraFrame

I want to click on one of the buttons in Frame 1 and cause four pages to
load in Frames 1, 2, and 3 and 4

I' doing the following: Double clicked on the picture, and the General Tab,
and then in the Default Hyperlink, I entered the following code fragment:

javascript:parent.frames.TopNav.location='../../menus/TopNav/TopNav_Home.htm';parent.frames.SecNav.location='../../menus/SecNav/SecNav_Home_Initial.htm';parent.frames.MainFrame.location='../../Pages/Home/home.htm';parent.frames.ExtraFrame.location='../../Pages/ExtraFrame/Books.htm'

This works fine (thanks for the tip on testing it on a web server, and not
just from within FrontPage). But, when I try clicking on a button in the
*secondary) navigation bar (now loaded in Frame 2), it tries to open up a
new browser window, and I get an error message:
The page cannot be displayed. Here's the code fragment for that button:

javascript:parent.frames.SecNav.location='../../menus/SecNav/SecNav_Home_SituationalAnalysis.htm';parent.frames.MainFrame.location='../../Pages/Home/SituationalAnalysis.htm'

Any idea why this is not working?

--thx, Joseph
 
T

Thomas A. Rowe

If you are using FP Navigation components, they are not designed to work with frames.

Have you considered not using frames?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
J

Joseph Mouhanna

I am not sure what you mean by FP navigation components. The first set of
Top navigation buttons worked fine, and I'm wondering why the secondary set
is not working.

I did consider not using frames, but this should still work regardless.

--thx, Joseph
 
T

Thomas A. Rowe

FP navigation component are used when you create a navigation view, where your home page is shown at
the top of the flow chart. If you are using the navigation component, then you can not set target
frames, etc.

Can you provide a URL to frameset?
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
J

Joseph Mouhanna

No, I am not using a navigation view. What I did is create a number of GIFs
to represent buttons, and I created a number of pages, each using the GIFs
to create different navigation views. For example, the top navigation bar,
has in it four GIFs, labeled: HOME, SERVICES, PRODUCTS, ABOUT

I created four different pages, in each page, one of the buttons is gold and
the others are blue (to indicate which one is active). The code fragments I
have now for these pages is working fine: it's switching in the proper page
in the frame labeled TopNav, and loading the right pages, pictures, etc. in
the other frames, including loading the correct second level buttons in the
secondary navigation frame. For instance, if I press SERVICES in the top
navigation frame, the SERVICES menu is loaded into the SecNav Frame. Under
SERVICES, I have three buttons: CONSULTING, DESIGN, SUPPORT (each
implemented as a GIF). It's when I add a code fragment to switch out the
appropriate SecNav menus, and load the correct pages that I get the error.

By URL to frameset, what do you mean?
 
S

Stefan B Rusynko

Review your paths relative to the files using them
Your first frame is using
.../../menus/SecNav/SecNav_Home_Initial.htm
- that page is 2 levels up from the 1st frame page location
Your second frame (SecNav_Home_Initial.htm) is using
.../../Pages/Home/SituationalAnalysis.htm
- that means the page it is looking for is another 2 levels up from SecNav_Home_Initial.htm

Then look for a base target tag in the second frame (or an incorrect target name)
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| No, I am not using a navigation view. What I did is create a number of GIFs
| to represent buttons, and I created a number of pages, each using the GIFs
| to create different navigation views. For example, the top navigation bar,
| has in it four GIFs, labeled: HOME, SERVICES, PRODUCTS, ABOUT
|
| I created four different pages, in each page, one of the buttons is gold and
| the others are blue (to indicate which one is active). The code fragments I
| have now for these pages is working fine: it's switching in the proper page
| in the frame labeled TopNav, and loading the right pages, pictures, etc. in
| the other frames, including loading the correct second level buttons in the
| secondary navigation frame. For instance, if I press SERVICES in the top
| navigation frame, the SERVICES menu is loaded into the SecNav Frame. Under
| SERVICES, I have three buttons: CONSULTING, DESIGN, SUPPORT (each
| implemented as a GIF). It's when I add a code fragment to switch out the
| appropriate SecNav menus, and load the correct pages that I get the error.
|
| By URL to frameset, what do you mean?
|
| | > FP navigation component are used when you create a navigation view, where
| > your home page is shown at the top of the flow chart. If you are using the
| > navigation component, then you can not set target frames, etc.
| >
| > Can you provide a URL to frameset?
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| > http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | >>I am not sure what you mean by FP navigation components. The first set of
| >>Top navigation buttons worked fine, and I'm wondering why the secondary
| >>set is not working.
| >>
| >> I did consider not using frames, but this should still work regardless.
| >>
| >> --thx, Joseph
| >>
| >> | >>> If you are using FP Navigation components, they are not designed to work
| >>> with frames.
| >>>
| >>> Have you considered not using frames?
| >>>
| >>> --
| >>> ==============================================
| >>> Thomas A. Rowe (Microsoft MVP - FrontPage)
| >>> ==============================================
| >>> If you feel your current issue is a results of installing
| >>> a Service Pack or security update, please contact
| >>> Microsoft Product Support Services:
| >>> http://support.microsoft.com
| >>> If the problem can be shown to have been caused by a
| >>> security update, then there is usually no charge for the call.
| >>> ==============================================
| >>>
| >>> | >>>>I have a web site with four frames.
| >>>>
| >>>> Frame 1 is called TopNav - initially loaded with the top navigation
| >>>> menu
| >>>> (different GIFs)
| >>>> Frame 2 is called SecNav - initially loaded with the secondary
| >>>> navigation
| >>>> menu (different GIFs)
| >>>> Frame 3 is called MainFrame
| >>>> Frame 4 is called ExtraFrame
| >>>>
| >>>> I want to click on one of the buttons in Frame 1 and cause four pages
| >>>> to
| >>>> load in Frames 1, 2, and 3 and 4
| >>>>
| >>>> I' doing the following: Double clicked on the picture, and the General
| >>>> Tab,
| >>>> and then in the Default Hyperlink, I entered the following code
| >>>> fragment:
| >>>>
| >>>>
javascript:parent.frames.TopNav.location='../../menus/TopNav/TopNav_Home.htm';parent.frames.SecNav.location='../../menus/SecNav/SecNav_Home_Initial.htm';parent.frames.MainFrame.location='../../Pages/Home/home.htm';parent.frames.ExtraFrame.location='../../Pages/ExtraFrame/Books.htm'
| >>>>
| >>>> This works fine (thanks for the tip on testing it on a web server, and
| >>>> not
| >>>> just from within FrontPage). But, when I try clicking on a button in
| >>>> the
| >>>> *secondary) navigation bar (now loaded in Frame 2), it tries to open up
| >>>> a
| >>>> new browser window, and I get an error message:
| >>>> The page cannot be displayed. Here's the code fragment for that button:
| >>>>
| >>>>
javascript:parent.frames.SecNav.location='../../menus/SecNav/SecNav_Home_SituationalAnalysis.htm';parent.frames.MainFrame.location='../../Pages/Home/SituationalAnalysis.htm'
| >>>>
| >>>> Any idea why this is not working?
| >>>>
| >>>> --thx, Joseph
| >>>>
| >>>>
| >>>>
| >>>
| >>>
| >>
| >>
| >
| >
|
|
 
J

Joseph Mouhanna

How do I determine where the focus is (the directory level)? To make sure
that I don't make any *level* mistakes, all the pages, menus, etc. are
exactly two levels deep, so no matter where the focus is, I can go back to
root by doing ../..

I know that I have no incorrect names (I id a directory dump and copied and
pasted and checked and double checked). I can get one menu to load properly
by doing it through the Picture Properties, Hyperlink and then browsing to
the page containing the secondary menu, and then I set the proper target
frame there as well). This loads it in the right place. But then, if I copy
it, and paste it into a javascript statement as follows:

javascript:parent.frames.SecNav.location='SecNav_Home_SituationalAnalysis.htm'

I get the same error message (and the browser tries to open it in a new
window. I was under the impression that by using "parent", I'm in the root,
then frames takes me to the frames context, and then SecNav sets the target
frame as SecNav, and location tells it the page name. I'm puzzled.


Stefan B Rusynko said:
Review your paths relative to the files using them
Your first frame is using
../../menus/SecNav/SecNav_Home_Initial.htm
- that page is 2 levels up from the 1st frame page location
Your second frame (SecNav_Home_Initial.htm) is using
../../Pages/Home/SituationalAnalysis.htm
- that means the page it is looking for is another 2 levels up from
SecNav_Home_Initial.htm

Then look for a base target tag in the second frame (or an incorrect
target name)
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| No, I am not using a navigation view. What I did is create a number of
GIFs
| to represent buttons, and I created a number of pages, each using the
GIFs
| to create different navigation views. For example, the top navigation
bar,
| has in it four GIFs, labeled: HOME, SERVICES, PRODUCTS, ABOUT
|
| I created four different pages, in each page, one of the buttons is gold
and
| the others are blue (to indicate which one is active). The code
fragments I
| have now for these pages is working fine: it's switching in the proper
page
| in the frame labeled TopNav, and loading the right pages, pictures, etc.
in
| the other frames, including loading the correct second level buttons in
the
| secondary navigation frame. For instance, if I press SERVICES in the top
| navigation frame, the SERVICES menu is loaded into the SecNav Frame.
Under
| SERVICES, I have three buttons: CONSULTING, DESIGN, SUPPORT (each
| implemented as a GIF). It's when I add a code fragment to switch out the
| appropriate SecNav menus, and load the correct pages that I get the
error.
|
| By URL to frameset, what do you mean?
|
| | > FP navigation component are used when you create a navigation view,
where
| > your home page is shown at the top of the flow chart. If you are using
the
| > navigation component, then you can not set target frames, etc.
| >
| > Can you provide a URL to frameset?
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| > http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | >>I am not sure what you mean by FP navigation components. The first set
of
| >>Top navigation buttons worked fine, and I'm wondering why the
secondary
| >>set is not working.
| >>
| >> I did consider not using frames, but this should still work
regardless.
| >>
| >> --thx, Joseph
| >>
| >> | >>> If you are using FP Navigation components, they are not designed to
work
| >>> with frames.
| >>>
| >>> Have you considered not using frames?
| >>>
| >>> --
| >>> ==============================================
| >>> Thomas A. Rowe (Microsoft MVP - FrontPage)
| >>> ==============================================
| >>> If you feel your current issue is a results of installing
| >>> a Service Pack or security update, please contact
| >>> Microsoft Product Support Services:
| >>> http://support.microsoft.com
| >>> If the problem can be shown to have been caused by a
| >>> security update, then there is usually no charge for the call.
| >>> ==============================================
| >>>
| >>> | >>>>I have a web site with four frames.
| >>>>
| >>>> Frame 1 is called TopNav - initially loaded with the top navigation
| >>>> menu
| >>>> (different GIFs)
| >>>> Frame 2 is called SecNav - initially loaded with the secondary
| >>>> navigation
| >>>> menu (different GIFs)
| >>>> Frame 3 is called MainFrame
| >>>> Frame 4 is called ExtraFrame
| >>>>
| >>>> I want to click on one of the buttons in Frame 1 and cause four
pages
| >>>> to
| >>>> load in Frames 1, 2, and 3 and 4
| >>>>
| >>>> I' doing the following: Double clicked on the picture, and the
General
| >>>> Tab,
| >>>> and then in the Default Hyperlink, I entered the following code
| >>>> fragment:
| >>>>
| >>>>
javascript:parent.frames.TopNav.location='../../menus/TopNav/TopNav_Home.htm';parent.frames.SecNav.location='../../menus/SecNav/SecNav_Home_Initial.htm';parent.frames.MainFrame.location='../../Pages/Home/home.htm';parent.frames.ExtraFrame.location='../../Pages/ExtraFrame/Books.htm'
| >>>>
| >>>> This works fine (thanks for the tip on testing it on a web server,
and
| >>>> not
| >>>> just from within FrontPage). But, when I try clicking on a button
in
| >>>> the
| >>>> *secondary) navigation bar (now loaded in Frame 2), it tries to
open up
| >>>> a
| >>>> new browser window, and I get an error message:
| >>>> The page cannot be displayed. Here's the code fragment for that
button:
| >>>>
| >>>>
javascript:parent.frames.SecNav.location='../../menus/SecNav/SecNav_Home_SituationalAnalysis.htm';parent.frames.MainFrame.location='../../Pages/Home/SituationalAnalysis.htm'
| >>>>
| >>>> Any idea why this is not working?
| >>>>
| >>>> --thx, Joseph
| >>>>
| >>>>
| >>>>
| >>>
| >>>
| >>
| >>
| >
| >
|
|
 
S

Stefan B Rusynko

JavaScript always works relative to the file it is in

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| How do I determine where the focus is (the directory level)? To make sure
| that I don't make any *level* mistakes, all the pages, menus, etc. are
| exactly two levels deep, so no matter where the focus is, I can go back to
| root by doing ../..
|
| I know that I have no incorrect names (I id a directory dump and copied and
| pasted and checked and double checked). I can get one menu to load properly
| by doing it through the Picture Properties, Hyperlink and then browsing to
| the page containing the secondary menu, and then I set the proper target
| frame there as well). This loads it in the right place. But then, if I copy
| it, and paste it into a javascript statement as follows:
|
| javascript:parent.frames.SecNav.location='SecNav_Home_SituationalAnalysis.htm'
|
| I get the same error message (and the browser tries to open it in a new
| window. I was under the impression that by using "parent", I'm in the root,
| then frames takes me to the frames context, and then SecNav sets the target
| frame as SecNav, and location tells it the page name. I'm puzzled.
|
|
| | > Review your paths relative to the files using them
| > Your first frame is using
| > ../../menus/SecNav/SecNav_Home_Initial.htm
| > - that page is 2 levels up from the 1st frame page location
| > Your second frame (SecNav_Home_Initial.htm) is using
| > ../../Pages/Home/SituationalAnalysis.htm
| > - that means the page it is looking for is another 2 levels up from
| > SecNav_Home_Initial.htm
| >
| > Then look for a base target tag in the second frame (or an incorrect
| > target name)
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | > | No, I am not using a navigation view. What I did is create a number of
| > GIFs
| > | to represent buttons, and I created a number of pages, each using the
| > GIFs
| > | to create different navigation views. For example, the top navigation
| > bar,
| > | has in it four GIFs, labeled: HOME, SERVICES, PRODUCTS, ABOUT
| > |
| > | I created four different pages, in each page, one of the buttons is gold
| > and
| > | the others are blue (to indicate which one is active). The code
| > fragments I
| > | have now for these pages is working fine: it's switching in the proper
| > page
| > | in the frame labeled TopNav, and loading the right pages, pictures, etc.
| > in
| > | the other frames, including loading the correct second level buttons in
| > the
| > | secondary navigation frame. For instance, if I press SERVICES in the top
| > | navigation frame, the SERVICES menu is loaded into the SecNav Frame.
| > Under
| > | SERVICES, I have three buttons: CONSULTING, DESIGN, SUPPORT (each
| > | implemented as a GIF). It's when I add a code fragment to switch out the
| > | appropriate SecNav menus, and load the correct pages that I get the
| > error.
| > |
| > | By URL to frameset, what do you mean?
| > |
| > | | > | > FP navigation component are used when you create a navigation view,
| > where
| > | > your home page is shown at the top of the flow chart. If you are using
| > the
| > | > navigation component, then you can not set target frames, etc.
| > | >
| > | > Can you provide a URL to frameset?
| > | > --
| > | > ==============================================
| > | > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > ==============================================
| > | > If you feel your current issue is a results of installing
| > | > a Service Pack or security update, please contact
| > | > Microsoft Product Support Services:
| > | > http://support.microsoft.com
| > | > If the problem can be shown to have been caused by a
| > | > security update, then there is usually no charge for the call.
| > | > ==============================================
| > | >
| > | > | > | >>I am not sure what you mean by FP navigation components. The first set
| > of
| > | >>Top navigation buttons worked fine, and I'm wondering why the
| > secondary
| > | >>set is not working.
| > | >>
| > | >> I did consider not using frames, but this should still work
| > regardless.
| > | >>
| > | >> --thx, Joseph
| > | >>
| > | >> | > | >>> If you are using FP Navigation components, they are not designed to
| > work
| > | >>> with frames.
| > | >>>
| > | >>> Have you considered not using frames?
| > | >>>
| > | >>> --
| > | >>> ==============================================
| > | >>> Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | >>> ==============================================
| > | >>> If you feel your current issue is a results of installing
| > | >>> a Service Pack or security update, please contact
| > | >>> Microsoft Product Support Services:
| > | >>> http://support.microsoft.com
| > | >>> If the problem can be shown to have been caused by a
| > | >>> security update, then there is usually no charge for the call.
| > | >>> ==============================================
| > | >>>
| > | >>> | > | >>>>I have a web site with four frames.
| > | >>>>
| > | >>>> Frame 1 is called TopNav - initially loaded with the top navigation
| > | >>>> menu
| > | >>>> (different GIFs)
| > | >>>> Frame 2 is called SecNav - initially loaded with the secondary
| > | >>>> navigation
| > | >>>> menu (different GIFs)
| > | >>>> Frame 3 is called MainFrame
| > | >>>> Frame 4 is called ExtraFrame
| > | >>>>
| > | >>>> I want to click on one of the buttons in Frame 1 and cause four
| > pages
| > | >>>> to
| > | >>>> load in Frames 1, 2, and 3 and 4
| > | >>>>
| > | >>>> I' doing the following: Double clicked on the picture, and the
| > General
| > | >>>> Tab,
| > | >>>> and then in the Default Hyperlink, I entered the following code
| > | >>>> fragment:
| > | >>>>
| > | >>>>
| >
javascript:parent.frames.TopNav.location='../../menus/TopNav/TopNav_Home.htm';parent.frames.SecNav.location='../../menus/SecNav/SecNav_Home_Initial.htm';parent.frames.MainFrame.location='../../Pages/Home/home.htm';parent.frames.ExtraFrame.location='../../Pages/ExtraFrame/Books.htm'
| > | >>>>
| > | >>>> This works fine (thanks for the tip on testing it on a web server,
| > and
| > | >>>> not
| > | >>>> just from within FrontPage). But, when I try clicking on a button
| > in
| > | >>>> the
| > | >>>> *secondary) navigation bar (now loaded in Frame 2), it tries to
| > open up
| > | >>>> a
| > | >>>> new browser window, and I get an error message:
| > | >>>> The page cannot be displayed. Here's the code fragment for that
| > button:
| > | >>>>
| > | >>>>
| >
javascript:parent.frames.SecNav.location='../../menus/SecNav/SecNav_Home_SituationalAnalysis.htm';parent.frames.MainFrame.location='../../Pages/Home/SituationalAnalysis.htm'
| > | >>>>
| > | >>>> Any idea why this is not working?
| > | >>>>
| > | >>>> --thx, Joseph
| > | >>>>
| > | >>>>
| > | >>>>
| > | >>>
| > | >>>
| > | >>
| > | >>
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top