I\'m looking for an AJAX function to dynamically request an HTML page. I already found the following:
function ajaxinclude(url)
{
var page_request = false
You might use an IE version which your script does not support. Try it again with this code snippet added before your function. ajaxinclude() can then be shortened to
function ajaxinclude(url) {
var req = new XMLHttpRequest;
if(!req)
return null;
req.open('GET', url, false); // get page synchronously
req.send();
return req.responseText;
}
As an aside: I generally dislike using frameworks - there's too much magic happening behind the scenes for me to feel comfortable...