0

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 はありますか?

アレックス

4

1 に答える 1

1

divにIDを追加し(たとえばid = "myPane")、次のように記述します。

dijit.byId("myPane").setHref("path/page.html");

アレックス

于 2008-09-26T00:26:06.260 に答える