Tech Support Forum banner
Status
Not open for further replies.
1 - 20 of 20 Posts

· Registered
Joined
·
46 Posts
Discussion Starter · #1 · (Edited)
Hello, and thanks for your time. Ive setup a frameset in dreamweaver8, a top banner frame, a frame for a sidebar, and a mainframe, and I have saved all frames accordingly. when I create a link, i cant get it to load in the mainframe. I have named all the frames, and I am choosing "mainframe" for the target. At this moment I am stumped. Any help appreciated. Using XP PRO, SP3, and dreamweaver 8. Thanks again, Techdunce.

Edit: Just a quick edit, and apologies for lack of information. When I click the newly created link in a browser, the page loads in a seperate tab, without the desired effect of "banner and sidebar". Techdunce
 

· Registered
Joined
·
2,300 Posts
Hey, we'll need the code for this. or a link (if it's on the web).

Cheers,
Jamey
 

· Registered
Joined
·
46 Posts
Discussion Starter · #3 ·
Hello Jamiemac, and thanks for your reply. The site, and pages in question are'nt uploaded to the web yet. Not sure what you mean by "code". As far as I can tell, Im going through the procedure correctly, but the page I link to just wont open in the target frame, it opens in a new tab. Ask any questions you like and i'll be happy to respond, but I dont know how to explain it any better. Thanks again for your time, Techdunce
 

· Registered
Joined
·
2,300 Posts
In DW8 open the sideframe's HTML page, in the view menu click "code", copy it all, paste it here within
HTML:
 tags. Then open the main page(the one with the frameset) and do the same. That way we can actually see the code behind the problem, we can't tell what's actually happening if we can only see what you're doing, we need to see what's actually going on.

Cheers,
Jamey.
 

· Registered
Joined
·
46 Posts
Discussion Starter · #5 · (Edited)
Hello, and thanks once again. Here's the main page code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {color: #00CCFF}
body **
background-color: #9966FF;
}
-->
</style>
</head>

<body>
<h1 class="style1">Site Map</h1>
<h3 class="style1"><a href="frameset_home.html" target="_parent"></a> </h3>
<h3 class="style1"><a href="../frameset_house/frameset_house.html" target="_parent">Home</a><a href="../frameset_house/house_main.html"></a></h3>
<h3 class="style1"><a href="../hobbies/frameset_hobbies.html" target="_parent">Hobbies</a></h3>
<h3 class="style1"><a href="../frameset_staff/frameset_staff.html" target="_parent">Staff</a></h3>
<h3 class="style1"><a href="../../hope.html" target="mainFrame">hope</a></h3>
<p class="style1"><a href="../../page.html" target="mainFrame">page</a></p>
<p class="style1"> </p>
<p class="style1"> </p>
<p class="style1"><a href="../../test.html" target="inFrame"></a></p>
<p class="style1"> </p>
<h3 class="style1"><a href="../../frame.html" target="mainFrame"></a></h3>
<h3 class="style1"> </h3>
</body>
</html>

This is the page thats supposed to open in the mainframe:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<p>testing again</p>
<p>  </p>
<p>  </p>
</body>
</html>

This is the sideframe.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {color: #00CCFF}
body **
background-color: #9966FF;
}
-->
</style>
</head>

<body>
<h1 class="style1">Site Map</h1>
<h3 class="style1"><a href="frameset_home.html" target="_parent"></a> </h3>
<h3 class="style1"><a href="../frameset_house/frameset_house.html" target="_parent">Home</a><a href="../frameset_house/house_main.html"></a></h3>
<h3 class="style1"><a href="../hobbies/frameset_hobbies.html" target="_parent">Hobbies</a></h3>
<h3 class="style1"><a href="../frameset_staff/frameset_staff.html" target="_parent">Staff</a></h3>
<h3 class="style1"><a href="../../hope.html" target="mainFrame">hope</a></h3>
<p class="style1"><a href="../../page.html" target="mainFrame">page</a></p>
<p class="style1"> </p>
<p class="style1"> </p>
<p class="style1"><a href="../../test.html" target="inFrame"></a></p>
<p class="style1"> </p>
<h3 class="style1"><a href="../../frame.html" target="mainFrame"></a></h3>
<h3 class="style1"> </h3>
</body>
</html>


Thanks once again. Techdunce
 

· Registered
Joined
·
2,300 Posts
Hey again, you posted up the side frame twice, post the code for the frameset (if you can't do this in DW then find the frameset page and open it in notepad...

Cheers,
Jamey
 

· Registered
Joined
·
46 Posts
Discussion Starter · #7 ·
Hello again,and thanks. Im a bit confused. I thought the very first "paste" was the frameset. Can you explain further please, and thanks again. Im going round in circles with this, and by now its really under my skin, so help is very much appreciated. Techdunce:smile:
 

· Registered
Joined
·
2,300 Posts
Hey again, nope, when you clicked code for the frameset it probably gave you the first frame's code, what is your page called and where is it located? Basically in the code somewhere it should have:
HTML:
<framset>
<frame ...(more stuff here)... />
<frame ...(more stuff here)... />
</framset>
But the first bit of code is identical to the code with the menu in (this is DW's fault)... I can see the set up but i need to see the frameset to see why this is actually going wrong (because it shouldn't be from what you've posted)...

So you need to find the file which contains the frameset (easiest way to do this is click the preview in browser button (looks like a globe) to preview the full thing in a browser, then right click and click "View source")... then copy that and paste it up. it should have the frameset code (which will help identify why this is going wrong... Alternatively you can just zip up the site and post it here as an attachment so i can do all the work on my end. It's up to you though.

Cheers,
Jamey
 

· Registered
Joined
·
46 Posts
Discussion Starter · #9 · (Edited)
Hello again. I cant find any such code in there. I did find similar in a different practise site, but no such code in this particular frameset. I know you scratching your head right now, as it is a frameset, and it should be there, but what I gave you is all I got. Now its even more "under my skin", this is just bugging the hell out of me. Any opinions MOST WELCOME JamieMac. Thanks again, Techdunce:smile:

OK, now we're getting somewhere. Found it with notepad.

<frameset rows="*" cols="172,1255" frameborder="no">
<frame src="home_map.html" frameborder="yes" id="map" />
<frameset rows="123,552" cols="*">
<frame src="home_top.html" frameborder="no" id="top" />
<frame src="home_main.html" frameborder="no" id="mainFrame" />
</frameset>

Now, I dont want to get ahead of myself, but do you know why that doesnt show up, without going to notepad? Big thanks again, Techdunce:smile:
 

· Registered
Joined
·
2,300 Posts
haha that is rather annoying yeah, did you try viewing it in an external browser?

*scratches head, opens dw8*... Okay, can you open the folder the sites in? how many .html pages in there? (should be 4 by my count, if you find them then open them all with notepad and find the one that says frame in it//what are their names?)...

If not then try file-> Check Page-> Validate Markup and see if it spits out any errors.
 

· Registered
Joined
·
46 Posts
Discussion Starter · #11 ·
Not sure if you got my little edit, so just to be sure, here it is again.

<frameset rows="*" cols="172,1255" frameborder="no">
<frame src="home_map.html" frameborder="yes" id="map" />
<frameset rows="123,552" cols="*">
<frame src="home_top.html" frameborder="no" id="top" />
<frame src="home_main.html" frameborder="no" id="mainFrame" />
</frameset>

Thanks again, Techdunce:smile:
 

· Registered
Joined
·
2,300 Posts
Okay, that seems fine, and it should be working. Is that all that's in the file? because there should be more (a doctype and HTML declaration)...

Cheers,
Jamey
 

· Registered
Joined
·
46 Posts
Discussion Starter · #13 ·
Here's the full code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body **
background-color: #000000;
}
-->
</style></head>

<frameset rows="*" cols="172,1255" frameborder="no">
<frame src="home_map.html" frameborder="yes" id="map" />
<frameset rows="123,552" cols="*">
<frame src="home_top.html" frameborder="no" id="top" />
<frame src="home_main.html" frameborder="no" id="mainFrame" />
</frameset>

</frameset>
<noframes><body>
</body>
</noframes></html>

also a couple of errors from your suggestion: "file/validate markup"

<frameset rows="*" cols="172,1255" frameborder="no">
Description: The tag: "frameset" doesnt have an attribute: frameborder in currently active versions.[xhtml 1.0 frameset]

<noframes><body>
Description:The tag: noframes is not allowed within:html it is only allowed within:frameset.[xhtml 1.0 frameset]

Hope this helps our cause:smile:
Thanks again, Techdunce:smile:
 

· Registered
Joined
·
2,300 Posts
Hey, there's a few problems here...

Change "id" to "name" on the frame definitions:
Code:
<frameset rows="*" cols="172,1255" frameborder="no">
<frame src="home_map.html" frameborder="yes" id="map" name="map" />
<frameset rows="123,552" cols="*">
<frame src="home_top.html" frameborder="no" name="top" id="top" />
<frame src="home_main.html" frameborder="no" name="mainFrame" id="mainFrame" />
</frameset>
Then re-make the links and see if they work.

The other possible problem is that the frames you're targeting are within another frameset... Which usually isn't a big problem, it just means referencing them is quite an effort. I might resort to throwing some Javascript in the links but this is not ideal.

Cheers,
Jamey
 

· Registered
Joined
·
46 Posts
Discussion Starter · #15 ·
JamieMac, thanks a bunch for that. Im not sure why DW had to be corrected like that, as I created all pages and links in Design View, but renaming "id" to "name" done the trick. I linked to a page in a frameset and another outside of any framsets, and all's well. I think we'll give the Java Script a miss for now, dont want to ruin my luck:laugh: Very grateful for support, so big thanks:wave:
 

· Registered
Joined
·
2,300 Posts
Brilliant, Glad it's working now.

Cheers,
Jamey
 

· Registered
Joined
·
46 Posts
Discussion Starter · #17 ·
Thanks, I have one more question if you have a moment. Why cant I always see the actual "frameset" code. When I open the frameset page now, in code view, I again only see this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>map</title>
<style type="text/css">
<!--
.style1 {color: #00CCFF}
body **
background-color: #9966FF;
}
-->
</style>
</head>

<body>
<h1 class="style1">Site Map</h1>
<h3 class="style1"><a href="frameset_home.html" target="_parent"></a> </h3>
<h3 class="style1"><a href="../frameset_house/frameset_house.html" target="mainFrame">Home</a><a href="../frameset_house/house_main.html"></a></h3>
<h3 class="style1"><a href="../hobbies/hobbies_main.html" target="mainFrame">Hobbies</a></h3>
<h3 class="style1"><a href="../frameset_staff/frameset_staff.html" target="a">Staff</a></h3>
<h3 class="style1"><a href="../../hope.html" target="mainFrame">hope</a></h3>
<p class="style1"><a href="../../page.html" target="mainFrame">page</a></p>
<p class="style1"> </p>
<p class="style1"> </p>
<p class="style1"> </p>
<p class="style1"> </p>
<p class="style1"><a href="../../test.html" target="inFrame"></a></p>
<p class="style1"> </p>
<h3 class="style1"><a href="../../frame.html" target="mainFrame"></a></h3>
<h3 class="style1"> </h3>
</body>
</html>

Hope you dont mind me asking, Techdunce:smile:
 

· Registered
Joined
·
2,300 Posts
It's just DW's way of working, if you clicked on the border/seperators then clicked code you'd probably see the frameset (weird i know but DW is weird that way).
 

· Registered
Joined
·
2,300 Posts
Haha =] that's okay.

Cheers,
Jamey
 
1 - 20 of 20 Posts
Status
Not open for further replies.
Top