Reply to Re: Frames and server generated HTML

Your name:

Reply:


Posted by dfloss on 02/07/07 15:30

> Hi
> I have a frameset containing two frames: left and right.
> %>
> <frameset cols="20%, 80%" >
> <frameset rows="100,200" >
> <frame src="frame1.html" name=_frame2>
>
> </frameset>
> <frame src="test.jsp" name=_frame1>
> </frameset>
>
>
> The left frame (frame1.html) has links to the bookmarks in the right
> frame as follows:
> <a href="#bookmark1" target="left_frame"> bookmark1 </a>
> <a href="#bookmark2" target="left_frame"> bookmark2 </a>
>
> The right frame displays the output of Java Code (JSP) in test.jsp
> that has all the book marks.
>
> Now when I click on the left frame links, I expect to see the right
> frame put the bookmark on the top of the frame. However, what I see is
> a blank left frame.
>
> Then I tried the following in frame1.html
>
> <a href="test.jsp#bookmark1" target="left_frame"> bookmark1 </a>
> <a href="test.jsp#bookmark2" target="left_frame"> bookmark2 </a>
>
> This calls the test.jsp script on the server. I don't want the
> test.jsp called more than once, i.e. at the time of initializing the
> frames.
>
> Can someone please help me figure this out?
>
> Thanks
>

Your frameset should look something like this:

<frameset cols="20%,80%">
<frame src="frame1.html" name="frame1" scrolling="auto">
<frame src="test.jsp" name="frame2" scrolling="auto">
</frameset>

Links in the left frame should look like this:
<a href="test.jsp#bookmark1" target="frame2">bookmark1</a>
<a href="test.jsp#bookmark2" target="frame2">bookmark2</a>

The frame names have to be consistent for all the files, so don't mix
"frame2" with "right_frame" & etc. "right_frame" is a lot easier to
remember than "frame2".

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация