develooper Front page | perl.beginners | Postings from February 2002

Re: off topic : frames html question

Thread Previous | Thread Next
Jenda Krynicky
February 27, 2002 01:51
Re: off topic : frames html question
Message ID:
From:           	"Rahul Garg" <>
> I have a html page which has many hyperlinks.
> Now each hyperlink at present calls another html page that has two 
> frames(horizontally).Ist frame is same for all links. Now second frame
> is also same but has many bookmarks. I want that on clicking difft.
> hyperlinks they should lead to their bookmarks.
> How is it possible or nany references.

Either generate the frameset page from a script so that you could 
specify the bookmarks:

	use CGI qw(param);
	$bookmark = param('bookmark');

	print <<"*END*";
	Content-type: text/html

	<FRAME ... SOURCE="left_pane.html">
	<FRAME ... SOURCE="right_pane.html#$bookmark">

and use links like
	<A HREF="/" 

Another option is to use JavaScript.
You'll open the second window, store the handle to the created 
window, and then use links like :

	<A href="goTo('Something')"

where goTo() is defined as

	function goTo(bm) {
		JavaScript:otherwnd.framename.location.hash = bm;

HTH, Jenda

=========== == ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
					--- me

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About