What is the clue I am missing in running Javascript code to have ajax return from the server?
This is what I am using:
var options;
var XMLHttpRequestObject = false;
if (window.XMLHttpRequest) {
XMLHttpRequestObject = new XMLHttpRequest();
} else if (window.ActiveXObject) {
XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
}
////////////// AJAX SONGS
function getoptions_songs()
{
var url = “…/supportpages/ajaxGetSongs.php?InputString=” + document.getElementById(‘GetString’).value;
if(XMLHttpRequestObject) {
XMLHttpRequestObject.open(“GET”, url, true);
XMLHttpRequestObject.onreadystatechange = function()
{
if (XMLHttpRequestObject.readyState == 4 &&
XMLHttpRequestObject.status == 200) {
var xmlDocument = XMLHttpRequestObject.responseXML;
options = xmlDocument.getElementsByTagName("option");
listoptions_songs();
}
}
XMLHttpRequestObject.send(null);
}
}
Is there something in the code that is not utilized by ExeOutput. Are there some concise directions somewhere on how to use ajax
Thanks,
Frank