Hey,
I'm using XmlHttpRequest to load an aspx file as below.
function GetPage(url)
{
var xmlhttp = false;
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
catch(Ex1)
{
try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
catch(Ex2) { xmlhttp = false; }
}
if (!xmlhttp && typeof(XMLHttpRequest) != 'undefined')
{
try { xmlhttp = new XMLHttpRequest(); }
catch(Ex3) { xmlhttp = false; }
}
if (!xmlhttp && window.createRequest)
{
try { xmlhttp = new window.createRequest(); }
catch(Ex4) { xmlhttp = false; }
}
xmlhttp.open("GET", url, true);
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readystate == 4)
{
xmlhttpwindow = window.open('', 'newwindow', 'status=yes, toolbar=no, location=no, menubar=no, width=700, height=650, resizable=no, scrollbars=yes, top=150, left=200');
xmlhttpwindow.document.write(xmlhttp.responseText);
}
}
xmlhttp.send();
}
But I get an Javascript error, ASP.NET Ajax client-side framework failed to load.
Any ideas? I'm using .NET 3.5 Fx and VS.NET 2008.
Thanks in advance.
Please mark the post that helped you as answer and also include a summary of what solved the problem as it helps others in similar situations