Question

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

Was it helpful?

Solution

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

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

Alex

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top