DojoX Layoutを使用して、レイアウトのコンテンツを置き換えることは可能ですか?
質問
DojoXレイアウト機能でページがロードされるdivがあります:
<div dojoType="dojox.layout.ContentPane"
adjustPaths="true"
renderStyles="true"
executeScripts="true"
href="my/page/containing/scripts/and/styles/in/a/sub/folder.html">
Initial content, will be replace by href.
paths in folder.html will be adjusted to match this page
</div>
後でこのdivのコンテンツを別のページ(他のURI)の他のコンテンツに置き換えるために使用できるAPIはありますか?
アレックス
解決
divにIDを追加し(たとえば、id =&quot; myPane&quot;)、次のように記述します。
dijit.byId("myPane").setHref("path/page.html");
アレックス
所属していません StackOverflow