Solved

DW newbie

Posted on 2006-10-23
10
238 Views
Last Modified: 2010-04-25
I am experimenting with DW and frame.  I have created a frame for navigation and my own content.  I have a third frame that will link to an external site (e.g., www.cnn.com, etc.)  How do I link in the extenrla site?

Thanks
JDF
0
Comment
Question by:johnfaig
  • 5
  • 3
  • 2
10 Comments
 
LVL 16

Assisted Solution

by:CWS (haripriya)
CWS (haripriya) earned 100 total points
Comment Utility
Assuming you are using iframe I have given the basic syntax.

<div align="center" >
<center>
<iframe src="http://www.cnn.com"  width="90%" align="middle"  scrolling="yes" height="400">
</iframe>
</center>
</div>

Hope this helps.
0
 

Author Comment

by:johnfaig
Comment Utility
cyberwebservice,

What section of the HTML does it go?  HTML, BODY, etc.?

Thanks
JDF
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
Comment Utility
between <body> and </body> tags.
0
 
LVL 2

Accepted Solution

by:
Marco_van_den_Oever earned 200 total points
Comment Utility
just so i understand the question :) You want to click on one of your navigation buttons to open a webpage/site in the third frame? And what's important to know, do you use iframes like cyberwebservice used for the (great) example, or do you use a frameset ?

In case of a frameset this is the correct 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>
</head>

<frameset rows="*" cols="80,*" frameborder="no" border="0" framespacing="0">
  <frame src="leftFrame_your_navigation" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
  <frameset rows="80,*" frameborder="no" border="0" framespacing="0">
    <frame src="topFrame_your_content" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
    <frame src="mainFrame_external_site" name="mainFrame" id="mainFrame" title="mainFrame" />
  </frameset>
</frameset>

<noframes>
<body>
</body>
</noframes>

</html>

So if you want to create a link from a button on the navigationframe to the mainframe in wich the external site: http://www.cnn.com will load, use:

<a href="http://www.cnn.com" target="mainFrame">here your navigationbutton</a>

Because you give the target "MainFrame" in the link, the link will look for a frame with the id "MainFrame"

Don't hesitate for more questioning
0
 

Author Comment

by:johnfaig
Comment Utility
Marco_van_den_Oever,

Actually I am trying to create a simple webpage with two frames that will be in the same HTML file.  I am using DW to test and it creates framesets in different files.  I need to know how to consolidate them into one file.

Thanks
JDF
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 2

Expert Comment

by:Marco_van_den_Oever
Comment Utility
Ok, then the answer of cyberwebservice  allready helped you out i think cause that's the way to consolidate different frames into one file, ok thx for noticing:) If you still have any questions let me know
0
 
LVL 2

Expert Comment

by:Marco_van_den_Oever
Comment Utility
Or if i still dont understand your question:) also ask
0
 

Author Comment

by:johnfaig
Comment Utility
One last question.  If I create a "main" webpage with one frame, does the frame have to be contained in a seperate file?  When I look at webpages with frames, they use seperate files.

Thanks
JDF
0
 
LVL 2

Expert Comment

by:Marco_van_den_Oever
Comment Utility
Websites with frames (so not iframes) use a frameset that points to the different frames, then each different frame has a refer to a page, so every frame gets it's content from a seperated file.

If you use iframes instead, then you also need a seperated file like yourpage.html in the following example:

<IFRAME SRC="yourpage.html" WIDTH=350 HEIGHT=250 FRAMEBORDER=1 SCROLLING=auto></IFRAME>

So if you use these methods, then you need seperated files.

Can be very confusing framesets/frames inframes, but it's easier then it seems to be

If you got any question, just ask:)
0
 
LVL 2

Expert Comment

by:Marco_van_den_Oever
Comment Utility
And thank you:)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now