Click to See Complete Forum and Search --> : Creating a frame on my site....


Baby Jai
09-21-2003, 10:42 AM
I would like to make it so I could create a middle frame on my site between the 2 columns and keep everything the way it is. Is this a possiblity?

pyro
09-21-2003, 03:46 PM
An iframe (http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5) maybe?

Baby Jai
09-21-2003, 04:03 PM
hmm sounds good, but the thing is, would i be able to open up any other windows in there? And if so what should i set the target to? Iframe? Sounds funny. But its could be possible no? Also what should i save the home page under Iframe or main?

Baby Jai
09-21-2003, 04:15 PM
yeah.........it works good. But how would i set it so other pages can open in there??? Looks gooooooddd.. I like it, thats all I need and im good. Also I get this message from dreamweaver when I use that code

[Your user agent does not support frames or is currently configured not to display frames. However, you may visit the related document.]

pyro
09-21-2003, 04:18 PM
You can open links in the iframe by using the target attribute:

<a href="yourpage.htm" target="iframename">link</a>

Baby Jai
09-21-2003, 04:31 PM
hmmm, so whatever i name the main iframe is what I should put there?

pyro
09-21-2003, 04:32 PM
Yes.

Baby Jai
09-21-2003, 04:35 PM
ok how do i name the iframe I cant even see it, its unvisible

MotherNatrsSon
09-21-2003, 04:50 PM
Name it in the code for the iframe.

<iframe name="boo" height...etc...>

MNS

Baby Jai
09-21-2003, 04:53 PM
yeah!!!!!!!!!!!!!!! hot!!! thanks all.

Pyro: Now we go back to the PHP problem, want to open it in the iframe

pyro
09-21-2003, 04:56 PM
You'll have to run the PHP in the iframe, 'cause as far as I know, there is no way to target an iframe (or a regular frame) with a PHP redirect...

Baby Jai
09-21-2003, 04:57 PM
top.iframe.location.href = htsite

got it

pyro
09-21-2003, 04:58 PM
Lol.. bouncing between the two threads is interesting... Yep, that'll do it with javascript... :)