Login Register

setHref

chart not rendering in programmatically created tab, which links to another page with setHref()

I creating a web page which displays charts, in tabs.

The tabs are created programmatically when a button is pressed.

I just create a tab and set the href to a page which is where the chart is created.

this is how I create the tab:-

javascript function in head of page 1

var node1=document.createElement("div");

var devel = new dijit.layout.ContentPane({id:"develTab",closable:"true",position:"relative",refreshOnShow:"true",title:"development overview"},node1);
devel.setHref("developmentoverview.jsp");
var tabCont = dijit.byId("tabs");

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.

content pane: get reposnse error

hi all,

the call to setHref get a server response error (http status 500),
how i can retrieve the response (ioArgs.xhr.responseText)?

onDownloadError give me error and not ioArgs with response.

Thank you

Dialog: how get response in case of error

hi all,

the call to setHref get a server response error (http status 500),
how i can retrieve the response (ioArgs.xhr.responseText)?

onDownloadError give me error and not ioArgs with response.

Thank you

Syndicate content