2008-09-25 127 views
0

我有在頁面加載與DojoX中佈局能力的DIV:使用DojoX佈局,是否可以替換佈局的內容?

<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> 

有沒有我可以使用後更換的這個內容的API與另一頁(其他一些內容的其他URI的div )?

亞歷

+0

我看到有一個setHref()上的contentPane。現在,我將如何獲取我在頁面中的給定內容窗格的Dojo對象(如上例所示)? Alex – avernet 2008-09-25 23:58:06

回答

1

添加一個id的DIV(說ID = 「myPane」),並寫:

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

亞歷