Re: HTML: call an anchor in a frameset

Subject: Re: HTML: call an anchor in a frameset
From: holmegm -at- attbi -dot- com
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Fri, 27 Sep 2002 20:23:22 +0000



>But I'm not trying to create a link on an HTML page
>to a place in a frameset. I want to create an
>HTTP-style address, e.g.
>f i le://help/[html file of frameset]#[html file in
frame in frameset]#[anchor name of place in html file in
frameset]
>
>(spaces added so your mail client doesn't try to
>interpret HTML)

If I understand what you are trying to do, and you
want to do it all client-side, then I think you'll
need to pass the HTML page and anchor name you want
loaded in the frameset as a variable, and have JS
in the frameset doc parse out the "framedpage.htm#dest"
value and load it into the desired frame.

So off the top of my head (i.e. untested):

http://yourserver.com/yourframesetparentfile.htm?pagetoload=framedpage.htm#dest

The frameset would have to do something like:

var url = unescape(location.search.split('=')[1]);
document.frames.mycoolframe.window.location=url;

Again, this is off the top of my head, so make sure you
get the syntax right, etc.

Good luck,

Greg Holmes

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Enhance, optimize and automate your FrameMaker-to-PDF workflow with TimeSavers:
Define all PDF features in your source FrameMaker files ONCE, distill MANY.
Bookmark Controller, Link Controller, UnBloat & more : http://www.microtype.com

Experience RoboHelp X3! This new RoboHelp release combines single sourcing,
print-quality documentation, conditional text and much more, into the most
monumental release of RoboHelp ever! http://www.ehelp.com/techwr-l

---
You are currently subscribed to techwr-l as:
archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.



Previous by Author: re: HTML: nested lists OK?
Next by Author: RE: Funny Tech Writing
Previous by Thread: Re: Linux users who like Wiindows (was: Drafts and the larger leadership picture)
Next by Thread: Reduce Recycle Reuse


What this post helpful? Share it with friends and colleagues:


Sponsored Ads