tags:

views:

496

answers:

1

I have a div in which a page is loaded with the DojoX Layout capability:

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

Is there an API I can use to later replace the content of this div with some other content from another page (other URI)?

Alex

A: 

Add an id on the div (say id="myPane"), and write:

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

Alex

Alessandro Vernet