P
PaPa
function getpage(pagename)
{
var request="";
This code worked fine in Mozilla, but caused an error in IE7. I have
no tools to discover what the error was.
////////////////////////////////////////////////////////////////////////////////////
try{
request=new XMLHttpRequest();
}
catch(e){
try{
request=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
try{
request= new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e) {
alert('sorry, your browser will not suport this
presentation');
}
}
}
var pn=pagename+".htm";
request.open("GET",pn);
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\
When I swapped the order of the requests, the code worked fine in both
Mozilla and IE7.
///////////////////////////////////////////////////////////////////////
function getpage(pagename)
{
var request="";
try{
request=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
try{
request=new XMLHttpRequest();
}
catch(e){
try{
request= new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e) {
alert('sorry, your browser will not suport this
presentation');
}
}
}
var pn=pagename+".htm";
request.open("GET",pn);
/////////////////////////////////////////////////////////////////////////////////////////////////
Am I missing something obvious?
Regards,
PaPa
{
var request="";
This code worked fine in Mozilla, but caused an error in IE7. I have
no tools to discover what the error was.
////////////////////////////////////////////////////////////////////////////////////
try{
request=new XMLHttpRequest();
}
catch(e){
try{
request=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
try{
request= new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e) {
alert('sorry, your browser will not suport this
presentation');
}
}
}
var pn=pagename+".htm";
request.open("GET",pn);
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\
When I swapped the order of the requests, the code worked fine in both
Mozilla and IE7.
///////////////////////////////////////////////////////////////////////
function getpage(pagename)
{
var request="";
try{
request=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
try{
request=new XMLHttpRequest();
}
catch(e){
try{
request= new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e) {
alert('sorry, your browser will not suport this
presentation');
}
}
}
var pn=pagename+".htm";
request.open("GET",pn);
/////////////////////////////////////////////////////////////////////////////////////////////////
Am I missing something obvious?
Regards,
PaPa