Code Examples
(Lines broken for readability)
Creating A Page With Frames
<frameset cols="15%,*"> <frame name="Menu" src="menu.cfm" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0"> <frame name="Main" src="main.cfm" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0"> </frameset>
Notice the names for the frames - Menu and Main. Menu is the left hand frame in our example and Main is the right.
Creating Links That Use The Frames
<a href="main.cfm" target="Main">Home</a>
<br />
<a href="aboutus.cfm" target="Main">About Us</a>
<br />
<a href="contactus.cfm" target="Main">Contact Us</a>
<br />
<a href="http://membername.servicename.com/search"
target="Main">Our Listings</a>
<br />
<a href="javascript:window.self.close();">Close Window,
Return</a>
This is the body of menu.cfm from the frame reference. Notice that when creating links in this page, the target="" attribute uses the name of the right hand frame (Main). This cause the links in the left hand frame to appear in the right hand frame.
There is one link that appears with http:// in front of it. This is called an absolute reference. That is what you will use to make your ListingWare Search appear in your frame, since ListingWare is on a different server than your web site. The other links are using relative references, since they are referring to documents that appear on the same server.
Using IFrames
<iframe src="http://membername.servicename.com/search" width="620" height="500"></iframe>
IFrame is short for Inline Frame. An IFrame is a special type of frame that essentially "surrounds" our content with your web page on all four sides. It will look sort of like a window in the middle of your page.
Spawning A New Page
<a href="http://membername.servicename.com/search" target="_blank">Our Listings</a>
You can add this reference to any screen element that can be a link - a button, a text element, an image, whatever. The target="" attribute in this case causes a new browser window to open using the reserve word _blank. This will open the window, but it would be up to the site viewer to maximize it or position it how they would like it. There are other ways to make the window appear without scrollbars or maximized on the screen, but if you know what I'm talking about, you are probably already familiar with these techniques.
