J
Jeff_Engel
Guest
I use Expressions 4 but after some updates to Windows 7 Home Premium, I get a error from the Development server of a file missing, but it does not say what file it is missing.
This is the code it is having a issue with.
This code works on the actual site and has worked for a long time.
If I comment this code out the error goes away but the page is not displayed correctly.
<SCRIPT LANGUAGE="JavaScript">
// new prototype defintion
document.include = function (url)
{
if ('undefined' == typeof(url)) return false;
var p,rnd;
if (document.all){
// For IE, create an ActiveX Object instance
p = new ActiveXObject("Microsoft.XMLHTTP");
}
else {
// For mozilla, create an instance of XMLHttpRequest.
p = new XMLHttpRequest();
}
// Prevent browsers from caching the included page
// by appending a random number (optional)
rnd = Math.random().toString().substring(2);
url = url.indexOf('?')>-1 ? url+'&rnd='+rnd : url+'?rnd='+rnd;
// Open the url and write out the response
p.open("GET",url,false);
p.send(null);
document.write( p.responseText );
}
</SCRIPT>
Continue reading...
This is the code it is having a issue with.
This code works on the actual site and has worked for a long time.
If I comment this code out the error goes away but the page is not displayed correctly.
<SCRIPT LANGUAGE="JavaScript">
// new prototype defintion
document.include = function (url)
{
if ('undefined' == typeof(url)) return false;
var p,rnd;
if (document.all){
// For IE, create an ActiveX Object instance
p = new ActiveXObject("Microsoft.XMLHTTP");
}
else {
// For mozilla, create an instance of XMLHttpRequest.
p = new XMLHttpRequest();
}
// Prevent browsers from caching the included page
// by appending a random number (optional)
rnd = Math.random().toString().substring(2);
url = url.indexOf('?')>-1 ? url+'&rnd='+rnd : url+'?rnd='+rnd;
// Open the url and write out the response
p.open("GET",url,false);
p.send(null);
document.write( p.responseText );
}
</SCRIPT>
Continue reading...