Log in

View Full Version : What are the alternatives to loading content through an iframe?



Mistrel
05-16-2006, 10:50 AM
I'm having a problem with the way Opera handles the z-index of iframes.

For detailed information:
http://www.webreference.com/dhtml/diner/seethru/
http://www.quirksmode.org/css/tests/op_iframes.html

My site:
http://ediblepoly.com

I use iframes on my website to handle loading all of the off-page content to keep the size of index.htm at a minimum.

The method I'm currently using isn't well supported. What is an alternative method for loading content in a similar way? I don't mind php but I would like to see something in javascript as well.

Twey
05-16-2006, 11:03 AM
Server-side is the best way to add external content.
If you're set on Javascript, search for the AJAX Includes script here on DD.

Mistrel
05-16-2006, 11:07 AM
Wow. It was here all along, eh? I'll definately check this out!

Thanks a bunch. ^^

djr33
05-16-2006, 08:17 PM
Server side coding is actually relatively simple if all you want to do is include another page.

<?php include("http...."); ?>

That's it.

that's php, and there are other languages as well.

But... ajax is good for certain things.


The general rule is to use server side unless it will be changing due to a mouseover, a click, etc etc.
Server side is processed THEN sent to the user, so it can't change without a refresh.
ajax can get around that... that's why it's helpful.