Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

109 users online



Question about iFrames...

Question about iFrames...

Currently viewing this thread: 1 (0 members and 1 guests)


Page 1 out of 2
soggybox

soggybox

Status: Offline!

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 Smile Thanks for helping!

Attachments:

iframe.gif iframe.gif (Download) 14.96 Kb, 56 views

Toast

Toast

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:

Code:


[i]markup[/i]
<div id="scroll">
<p>This paragraph, and all other paragraphs contained in div#scroll will scroll
</p>
</div>

Code:


[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:

Code:


<!#--include file="file.ext" -->

ASP, PHP, JSP, Perl, CF, etc. all have include functions.

soggybox

soggybox

Status: Offline!

Hmm I'm sort of confused.

the

Code:

<!#--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

Simon

Simon

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.

soggybox

soggybox

Status: Offline!

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

soggybox

soggybox

Status: Offline!

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...

Dachande663

Dachande663

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.

___________________

http://www.hybridlogic.co.uk/sig.jpg
http://www.hybridlogic.co.uk/winamp.jpg

soggybox

soggybox

Status: Offline!

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

withoutreason

withoutreason

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 Tongue

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)

soggybox

soggybox

Status: Offline!

No it wasn't o.o;

Page 1 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.009 seconds.