We're looking for some form of solution to iframes, we cant use php include because its not practical - Unless iframes are now compatible with all well-known browsers.
Any ideas?
Printable View
We're looking for some form of solution to iframes, we cant use php include because its not practical - Unless iframes are now compatible with all well-known browsers.
Any ideas?
Iframes have been compatible with all browsers for years.
wth u on about ?
U wnt to include pages on ur site?
Use AJAX content loading?
Oh, i didnt think that iframes were compatible with all browsers, so to name they work with IE, Firefox, Opera, Safari ?
Yea, should make sense, its a basic function to replace a div's contents with that of a page with some loading text just before. Its basic and ugly but thats the sort of thing you will be looking at if you go down the ajax route.HTML Code:
<!-- javascript (include prototype and scriptaculous here) -->
<script src="linkto/prototype.js" type="text/javascript"></script>
<script src="linkto/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
function loadPage( div, url ){
var loadingText = 'Loading...'; //html can go here too
document.getElementByID(div).innerHTML = loadingText;
new Ajax.Updater( div, url );
}
</script>
<div id="content"></div>
<a href="#" onClick="loadPage( 'content', 'news.php' );">News</a>
However iFrames are fine to use (even though I hate people who do ;) ).
IFrames are fine.Quote:
However iFrames are fine to use (even though I hate people who do ;) ).