HOWTO: FrontPage 2002 Navigation Component and Target

  • Thread starter Thread starter Mark Kruger [MVP]
  • Start date Start date
M

Mark Kruger [MVP]

I had a lot of issues with my navigation component especially when dealing
with targets. I looked around for articles in the group but didn't find too
many helpful ones. I got to the point where I was editing my html in a text
editor to add the target="_top" to each link. However, every time I opened
the web in FrontPage, the code would get re-written and I would have to go
back and do the whole thing over and over...

Well, for those that are using navigation in a frame of iframe and having a
similar issue, I would definitely recommend changing your links to
javascript links. I right-clicked on the navigation webbot and edited the
url from 'http://www.myserver.com/mypage.htm'
to
javascript:var vNW=window.open('default.htm','_top');

It has saved me a lot of hastle and I can now open my web in FrontPage
without worries about my code getting re-written!! YIPPEE!

If someone has posted a similar answer, I apologize for the duplicate but I
was unable to find it ;)
 
The FP Navigation component is not meant to be used with framesets or the
IFRAME or when you need to able to set a target frame value.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
So what is your solution / workaround?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
I think we just went full circle here...

Begin Quote
--------------------------------------------------------------
Well, for those that are using navigation in a frame of iframe and having a
similar issue, I would definitely recommend changing your links to
javascript links. I right-clicked on the navigation webbot and edited the
url from 'http://www.myserver.com/mypage.htm'
to
javascript:var vNW=window.open('default.htm','_top');
--------------------------------------------------------------
End Quote



--
Mark Kruger
MVP - SharePoint Team Services
Miami, Florida
 
Question: After doing that, does FP then continue to maintain the hyperlink
based on the navigation structure?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
If you mean that it will automatically add the javascript to links for you
for pages at a certain level..no. However, if you're in a situation where
you would like to have navigation within a frame, it's a small price to pay
to have to add the bit of code. It also depends on how regularly you add
pages to your navigation structure. It's just a matter of adding your page
based on navigation structure and then editing that link so you can add the
javascript around that link to make it open in a new window.

--
Mark Kruger
MVP - SharePoint Team Services
Miami, Florida
--------------------------------------------------------------
Also an Assistant Dean @
http://www.sharepointu.com
--------------------------------------------------------------
SPTS FAQ: http://www.collutions.com/Lists/FAQ,
WSS FAQ: http://wss.collutions.com (beta)
both courtesy Mike Walsh - Helsinki, Finland
--------------------------------------------------------------



Thomas A. Rowe said:
Question: After doing that, does FP then continue to maintain the hyperlink
based on the navigation structure?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


Mark Kruger said:
I think we just went full circle here...

Begin Quote
having
 
Mark,

The whole point of using FP navigation component is to allow for easy
updating of a site's navigation structure by just re-arranging items in the
navigation view.

I agree it is a workable solution, just that FP users that might use this
solution need to be aware that once implemented, that FP then is no longer
managing their navigation structure and if they make any changes to their
navigation structure that FP may overwrite any current links and will not
add any new link with JavaScript, etc.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


Mark Kruger said:
If you mean that it will automatically add the javascript to links for you
for pages at a certain level..no. However, if you're in a situation where
you would like to have navigation within a frame, it's a small price to pay
to have to add the bit of code. It also depends on how regularly you add
pages to your navigation structure. It's just a matter of adding your page
based on navigation structure and then editing that link so you can add the
javascript around that link to make it open in a new window.

--
Mark Kruger
MVP - SharePoint Team Services
Miami, Florida
--------------------------------------------------------------
Also an Assistant Dean @
http://www.sharepointu.com
--------------------------------------------------------------
SPTS FAQ: http://www.collutions.com/Lists/FAQ,
WSS FAQ: http://wss.collutions.com (beta)
both courtesy Mike Walsh - Helsinki, Finland
--------------------------------------------------------------



Thomas A. Rowe said:
Question: After doing that, does FP then continue to maintain the hyperlink
based on the navigation structure?

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

Mark Kruger said:
I think we just went full circle here...

Begin Quote
having
 
Back
Top