Login Register

dynamic loading setHref

dijit.Layout.ContentPane setHref dynamic problem + solution

If you want to load an external url into a ContentPane and in this url you have a dojo/js code and you want it executed you will have to use dojox.Layout.ContentPane replacement.

<div dojoType="dojox.layout.ContentPane" layoutAlign="top" style="height: 100%;" id="mainPage" executeScripts="true">
</div>

BE WARNED that at the current moment I'm posting this(3.01.2008) If you use setHref to load a page and expect your page to act as before, have in mind that when this code from the loaded url gets parsed it IS EXECUTED the order it is in the page - line by line.

Syndicate content