Wie mache ich zwei xhr.gets nacheinander mit Dojo?mehrere xhr.get s mit Dojo
Ich habe ....
require(["dojo/_base/xhr", "dojo/dom", "dojo/domReady!"],
function(xhr, dom) {
// Using xhr.get, as very little information is being sent
xhr.get({
// The URL of the request
url: "inc/etl2json.php?item=Execs",
// The success callback with result from server
load: function(execContent) {
dom.byId("Execs").innerHTML = execContent;
},
// The error handler
error: function() {
// Do nothing -- keep old content there
}
});
});
würde Ich mag eine andere xhr.get zu "inc/etl2json.php? Item = Execs" und weisen es dom.byId tun (“ Verstrichen "). InnerHTML = elipsedContent;