Solved

DW newbie

Posted on 2006-10-23
10
242 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
ID: 17793830
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
ID: 17797374
cyberwebservice,

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

Thanks
JDF
0
 
LVL 16

Expert Comment

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

Accepted Solution

by:
Marco_van_den_Oever earned 200 total points
ID: 17829620
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
ID: 17837237
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Expert Comment

by:Marco_van_den_Oever
ID: 17837329
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
ID: 17837343
Or if i still dont understand your question:) also ask
0
 

Author Comment

by:johnfaig
ID: 17838138
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
ID: 17838438
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
ID: 17843738
And thank you:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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 …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

18 Experts available now in Live!

Get 1:1 Help Now