DojoX Layoutを使用して、レイアウトのコンテンツを置き換えることは可能ですか?

StackOverflow https://stackoverflow.com/questions/136928

  •  02-07-2019
  •  | 
  •  

質問

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");

アレックス

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top