
Originally Posted by
codeexploiter
If the data you are loading is from your domain itself then you can even try to use
AJAX for the loading purpose when you need that content.
And a (very basic) example would be:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Htranscluder</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
document.includeWrite = function (url) {
if ('undefined' == typeof(url)) return false;
if (window.XMLHttpRequest)reqWrite = new XMLHttpRequest()
else if (window.ActiveXObject){
try {
reqWrite = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try{
reqWrite = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
reqWrite.open("GET",url,false); reqWrite.send(null); document.write(reqWrite.responseText);
}
</script>
</head>
<body>
text
<script type="text/javascript">
document.includeWrite('includeme.html')
</script>
<p>text</p>
</body>
</html>
which would include includeme.html.
===
Arie.
Bookmarks