Many times we have pages on servers that do not support the Server Side Includes, this script can add a page as an include but being Client Side Include:-D.
Friday, July 7, 2006
Hot Flashes After Hysterectomy
"Includes" to using XML JS and PNG
Many times we have pages on servers that do not support the Server Side Includes, this script can add a page as an include but being Client Side Include:-D.
Many times we have pages on servers that do not support the Server Side Includes, this script can add a page as an include but being Client Side Include:-D.
NOTE: Some servers, especially make an error free with this script, so there is no guarantee that they all serve To install the script put the following between the \u0026lt;head> \u0026lt;/ head>
\u0026lt;script type="text/javascript"> function include (xUrl, xid) {var
xmlhttp = false;
/ cc_on * @ @ * /
/ * @ if (@ _jscript_version> = 5)
/ / JScript Gives us Conditional compilation, we can cope with old IE versions .
/ / and security blocked creation of the objects.
try {xmlhttp = new ActiveXObject ("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
/*@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
xmlhttp.open("GET", xUrl,true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState == 4) {document.getElementById
(XID). InnerHTML = xmlhttp.responseText;
}}
xmlhttp.send (null)
} \u0026lt;/ script>
Y Ahora la funcion llamamos asi:
\u0026lt;div id="'xjam"> \u0026lt;/ div>
\u0026lt;script type = "text / javascript" > include ('
contenido.htm
"," Free Software "); \u0026lt;/ script>
where changing the include file that is marked in bold
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment