Remote server:
<%
dim myx
myx=""
if (request("t")="test") then
myx= "test1"
elseif (request("t")="test2") then
myx= "test2"
end if
%>
if (typeof(obj_ajax_xmlp) == "undefined") {
var obj_ajax_xmlp = {x: {}};
obj_ajax_xmlp.loadXml = function(s, uid) {
if(document.implementation && document.implementation.createDocument) {
var objDOMParser = new DOMParser();
this.x[uid] = objDOMParser.parseFromString(s, "text/xml");
} else if (window.ActiveXObject) {
this.x[uid] = new ActiveXObject('MSXML2.DOMDocument.3.0');
this.x[uid].async = false;
this.x[uid].loadXML(s);
}
}
}
obj_ajax_xmlp.loadXml('<%=myx%>', '<%=request("id")%>');
<%=request("context")%>.<%=request("method")%>.call(<%=request("context")%>, obj_ajax_xmlp.x['<%=request("id")%>']);
Local server:
Test
callback-1 callback-2
n/a