Login Register

loadingMessage

What triggers the ContentPane loadingMessage property?

What triggers the loadingMessage property in dijit.layout.ContentPane? I’m loading a PDF into a ContentPane (dojo 1.1) using the following code:

tab.setContent("<object type='application/pdf' data=’myServlet’></object\>");

It can take my servlet up to 5 or 6 seconds to return the PDF, after which time the adobe reader plugin loads the reader frame, and the pdf is visible. However, while I’m waiting for the PDF to return, I never get the loadingMessage icon and message - just a blank ContentPane (same for both IE and FF).

Loading message in Dialog ContentPane

I am developing a modal dialog to load an iframe as its content. I am successfully using the setContent method of the dialog:

//stubbed code
anonDiv.appendChild(iframe);
dialogWidget.setContent(anonDiv);
dialogWidget.show();

However, I need to display a loading message while the iframe content is loading. I see that Dialog inherits from dijit.layout.ContentPane and that ContentPane has a loadingMessage property. How do I set up my Dialog to display this message?

Thanks!

Syndicate content