If I have a ASP page with multiple functions in it and I want to call one via AJAX, can I do that? Or do I have to have a separate ASP for the call?
E.g.
My javascript looks roughly like
Can the Search.asp have multiple funcs in it and I just call one of those funcs?
Thanks in advance
E.g.
My javascript looks roughly like
Code:
function getAjaxResults()
{
var oXmlHTTP = getXmlHttpObject();
var sURL = "Search.asp?srch=a32";
oXmlHTTP.onreadystatechange = function AjaxFunc()
{
var sTemp = oXmlHTTP.responseText;
document.getElementById("div1").innerHTML = sTemp;
}
}
Can the Search.asp have multiple funcs in it and I just call one of those funcs?
Thanks in advance