
December 17th, 2004
04:20 AM
Question about iFrames...
Okay I was wondering a bit of information on iFrames..
I only need to use it for a certain page on my website, not for the whole website x_x...
- Are iFrames compatible on every browser
- If they arn't compatible on every browser, how would I go about to putting one up that will be.
- I have attached sort of a drawing type thing of what I want my Iframe to do, I was wondering if this was possible.. :P It was done in MS Paint o.o was too lazy to do it up in Photoshop.
If you need anymore input just post
Thanks for helping!

December 17th, 2004
04:36 AM
Neverside Newbie
Status: Offline!
It seems you are wanting to use iframes just to include different pages into 1 template, depending on what link is clicked. You should, instead, use a server side include since Iframes are NOT compatible on every browser and the target attribute is deprecated.
For the "scrolling iframe", use a <div> with overflow set to scroll. Example:
[i]markup[/i]
<div id="scroll">
<p>This paragraph, and all other paragraphs contained in div#scroll will scroll
</p>
</div>
[i]style[/i]
#scroll {
width: 500px;
height: 350px;
overflow: scroll;
}
As far as the includes go, it depends on how your host is set-up as to what you actually use to include a file. If it has SSL enabled (which most webhosts do) you can use:
<!#--include file="file.ext" -->
ASP, PHP, JSP, Perl, CF, etc. all have include functions.

December 17th, 2004
04:55 AM
Hmm I'm sort of confused.
the
<!#--include file="file.ext" -->
Does what exactly? And .ext = like whatever the page is (.php, .html) ect?
How would it act like an iframe? Could you care to set me up an example on your host if you can possibly do that.
I want to have one page example has "Link 1 | Link 2 | Link 3" if link 1 is clicked i wanted it to bring up what.html, link 2, example.html, link 3 test.html... O.o

December 17th, 2004
06:13 AM
Jag är Gandalf den grå och den vite, men vem är du?
Status: Offline!
I've never really understood the reason with things like this myself but anyway...
".ext" usualy = extension... .ext means anything, php/asp/html/html/xml/gif/jpg/ho-ho?....Perhaps I'm wrong but thats what I thought it meant atleast.
Just make sure to stay off those iFrames since they might come back to slap you later on. If you need a scrolling box inside the page then a div + some simple css will do. If you need to have only parts of the page changing then something as explained above should do.
___________________
Neversidian, your staff is broken.

December 17th, 2004
07:43 AM
Yeah spater, but I need an iframe like object that is on one page that when a link is clicked it will open a page inside that iframe like object... there will be many different links so I need different .html pages to be viewed from that iframe type object.
What I asked Toast was an example on how it works because I really don't know how it does work or how I would go about to coding how the links work ect

December 17th, 2004
08:20 AM
Do you think this will work on all browsers:
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
It's what I am looking for.. but I want to make sure it works on all browsers so nobody is left out...

December 17th, 2004
09:20 AM
Web Developer & Geek
Status: Offline!
It uses JavaScript which not all browsers support, so no it won't work on everything. If all you want to do is show a page on another and be able to change it either use iFrames (which are always supported) or just use PHP or something and include dynamically.
___________________


December 18th, 2004
06:00 AM
I don't think my server has ssi enabled and to get it enabled would cost money which I don't want to pay for. X_X

December 18th, 2004
10:12 AM
Neverside Newbie
Status: Offline!
if you are going to use ssi you a .shtml extension
if you are going to use php include... um, i forget how
asp? never touched it
perl? use ssi... um, i think
*edit*
this wasn't a very good reply eh?
Last edited by withoutreason, December 18th, 2004 10:16 AM (Edited 1 times)