Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2003, 12:18 AM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Table Question - Can you make a cell into a frame?

Grabbed a copy of Beginning Dreamweaver MX. Must say it was one of the few HUGEA$$ :D computer books that I have bought that I actually use. Well done!

Oh - webpage making newbie here, hardware geek turning to the dark side ;)

I am following thru making the first website in the book, but am making my own instead of the Cooking Site that is the example. I am deviating from things a bit and am wondering if the following is possible.

I used a table to hold the gif border pix (4 of them) in place and created a center area (the middle of the 5 table cells) where I want the hyperlinks from the menu buttons to put the various html pages chosen by the visitor. I'm thinking/hoping to make that cell into a frame. But am having troubles actually making the frame inside the cell. Is this even possible ... ie having a single frame on a page? Everytime I play around with frames it makes at least 2. Or am I in left field and need to get on the right track (which hopefully can be pointed out to me).

Thx for your time,
Al


What comes around ... goes around.
 
Old October 1st, 2003, 05:35 AM
Authorized User
 
Join Date: Jul 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to chabrown Send a message via MSN to chabrown
Default

Al:

Thanks for the good words.

If I am hearing you correctly, you want the center cell to reflect the new web page selected.

Ths is called a Frameset and requires a bit of HTML programming. Dreamweaver helps us out by using a template from the File > New > Frameset menu.

While it is possible, most web designers have moved away from Framesets. Their behaviors can be erratic in different browsers and, even if you do that, you would need to use a "browser sniffer" to detect the browser the visitor is using and offer a possible alternative.

I hope this helps a bit. Let me know if I misunderstood your question.

Charles E. Brown

Charles E. Brown
Author - Beginning Dreamweaver MX, Fireworks MX - Zero to Hero
Contributor - Macromedia Studio MX Bible
 
Old October 1st, 2003, 08:35 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Al,

Glad you like the book!

In addition to what Charles said, you may choose for an <iframe>, also called an inline frame.

The cool thing about an iframe is that you can use it almost anywhere in your page; there is no need to define a top level frameset. Something like this would wotrk:

<table id="mainMenuTable">
<tr>
  <td><iframe src="MyMenuPage.html"></td>
</tr>
</table>

This way, your table cell can contain a frame. The frame's contents are retrieved from an external file called MyMenuPage.html.

For more info about the iframe element: http://www.w3.org/TR/html4/present/f...ml#edef-IFRAME
Beware that iframe is not supported by older browsers, but most modern browsers know how to handle it.

Cheers,

Imar



---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 1st, 2003, 10:19 AM
Authorized User
 
Join Date: Jul 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to chabrown Send a message via MSN to chabrown
Default

A couple of things to elaborate on Imar's response. First of all, make sure you use a closing iframe tag. You could have problems without closing it.

While I do think the iframe tag is interesting, it is not without its problems including, believe it or not, legal issues. There are also some browser compatibility problems with IE.

As an interesting read for the potential pros and cons of iframes, go to:

http://www.cs.tut.fi/~jkorpela/html/....html#problems

This is one of the best discussions of this topic.

Charles E. Brown
Author - Beginning Dreamweaver MX, Fireworks MX - Zero to Hero
Contributor - Macromedia Studio MX Bible
 
Old October 1st, 2003, 11:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Thanks, Charles, for fixing the </iframe> tag. I had indeed forgotten it in my code example.

Nice link; very thorough explanation of how to use (and not to use) an iframe.

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 1st, 2003, 11:55 AM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ba Da BING!

That is exactly what I wanted!! Had to play with is a bit to get the cell to fill out to the same size as the cell.

Next question: In the target pulldown under properties for hyperlinks, I am not getting an option for the frame just created. I am obviously missing something. Suggestions?

Thx for the quick responses Charles and Imar.
Al

What comes around ... goes around.
 
Old October 1st, 2003, 12:05 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Nope, you're not missing something, but Dreamweaver is. It doesn't add the names of iframe tags to the drop-down. You'll need to type in the name directly.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 1st, 2003, 12:31 PM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ah-HA! It's ALIVE! :D

thx for the help!
Al

-------------------------------------

What comes around ... goes around.
 
Old October 2nd, 2003, 12:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

Sorry, couldn't help but ask - maybe it's a dumb question! but in this case what's the difference between using a layer or an i frame?

I've never used i frames but they sound similiar to layers? am I barking up the wrong tree?

What sort of instance would you use an i frame?

thanks

Adam
 
Old October 2nd, 2003, 01:31 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, there are some similarities and a lot of differences between layers and iframes.

You can thing of an iframe as an ordinary frame, except that there is no need to place it inside a frameset, but instead you can place it anywhere on the page. You can load other pages in it, so it makes it easier to reuse a menu for example, on multiple framesets.

Layers (usually implemented as a <div> tag, as the old skool <layer> tag shouldn't be around anymore) are more like container objects for elements on your page. They make for easy arrangement, hiding, displaying, etc.

This is what the W3C says about the iframe:

Quote:
quote:The IFRAME element allows authors to insert a frame within a block of text. Inserting an inline frame within a section of text is much like inserting an object via the OBJECT element: they both allow you to insert an HTML document in the middle of another, they may both be aligned with surrounding text, etc.
The information to be inserted inline is designated by the src attribute of this element. The contents of the IFRAME element, on the other hand, should only be displayed by user agents that do not support frames or are configured not to display frames.
For more info, checkout the iframe, the div, and the span tags at the W3C site.

regards,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick question put image in table cell user0b PHP How-To 0 June 26th, 2008 10:56 PM
Can a Make Table Query produce a Linked table? kronik Access 5 May 16th, 2006 06:17 AM
make textbox maximum length of <td> cell crmpicco Javascript How-To 0 October 19th, 2005 10:46 AM
Make Table query : table in Another Database marnik Access 1 March 19th, 2005 12:39 PM
frame boarder question yu100 Javascript 1 September 2nd, 2003 08:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.