2008-09-25 129 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"); 

亚历