2008-09-25 10 views
0

나는 페이지가 DojoX는 레이아웃 기능이 탑재되어있는 사업부가 있습니다 DojoX Layout을 사용하면 레이아웃 내용을 바꿀 수 있습니까?

<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

합니다. 이제 위의 예제에서와 같이 페이지에있는 주어진 컨텐츠 창에 대해 Dojo 객체를 얻는 방법은 무엇입니까? 알렉스 – avernet

답변

1

는 사업부 (ID = "myPane"을 말한다)에 ID를 추가하고 쓰기 :

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

알렉스 내가의 ContentPane에 setHref이()이 참조