Reputation: 2528
I'm wondering is there a quick way in DOJO to load ouput of http request into some DOM node like in jQuery
$('#injectMe').load('/someResource', {
id: 223,
xxx: "2323"
});
ps I know about dojo.xhr* methods :) Maybe there is a simpler method ?
Upvotes: 1
Views: 275
Reputation: 8162
You can use a ContentPane
with a url to specify the content.
<div id="foo" data-dojo-type="dijit/layout/ContentPane" href="/some/page.html">
</div>
http://dojotoolkit.org/reference-guide/1.8/dijit/layout/ContentPane.html
Upvotes: 3