PDA

View Full Version : opening a hyperlink in a frame


newbie
04-10-2006, 01:30 PM
hi, i've a problem with opening a hyperlink in a frame.

if i make a link in frame A, and a hyperlink to file B and define with the target parameter to open file B in frame B (named B) my browsers are going to open file B in a new browserwindow.

after a lot of try and error i solved the problem, but i didn't understand the reason.

dreamweaver generates code like id="leftframe" by giving the left frame a name. and in the target i have to fill in this id (leftframe). but it doesn't work.

after i changed manually the tag id into name it works correctly and the wanted file is opened in the defined frame.

is this an error of dreamweaver or are there some options or extras not correct set in my dreamweaver installation? did anyone ever seen this problem?

thx in advance, chris.

majetta
04-11-2006, 01:19 PM
it seems my copy of dreamweaver has a mind of its own when i try to open the frameset source page :x , i have toclose all open files and then rightclick on the frameset file in the files folder and select open in dreanweaver :| .

i tried a simple 2 frame set named _1 and _2

<frameset rows="80,*" frameborder="no" border="0" framespacing="0">
<frame src="top.html" name="_1" scrolling="No" noresize="noresize" id="topFrame" title="_top" />
<frame src="bottom.html" name="_2" id="mainFrame" title="_main" />
</frameset>

the top page has the links:

[/b]google in 1 (http://www.google.com)
[/b]google in 2 (http://www.google.com)

this seemed to work fine and opend the pages in the apropriate frames. im not aware of any frame naming scheme, but _main and _top don't work for me. :shock:

newbie
04-12-2006, 07:21 AM
To Majetta:

Of course, if a frame ist named by the tag NAME it works correctly. But if any frame is autonamed by dreamweaver with the tag ID it seems not possible to open it by calling the ID in another frame.

If I've opened any frameset I can select the code in the windows "frames" by clicking in or on the borders shown in the bottom of this window. There is no problem in my installation of dreamweaver.

However, I solved my problem by using the tag NAME and changing the generated code manually and so this thread would be closed.

Have a nice day,

Chris.

newbie
04-12-2006, 07:24 AM
I've forgotten to tell: _top and all other primary internal framenames of dreamweaver would work in my installation, the problem seems to belong to selfdefined framenames. They wouldn't be known by dreamweaver and so the standard action of the system is to open the framecontent in a new window.