Login Register

content

Dijit.layout.ContentPane cache problem

Hi,

i want to use dijit.layout.ContentPane to generate a widget, where i can integrate some templated widgets.
The first time i loaded the page everything is fine. When i reload via link the content, dojo can only create the first widget without my defined template and input. Everytime the same procedure, when i load the content for the contentPane everything is fine, but when i reload the contentPane with the same content a second time nothing happen and the page is empty.

Has anybody an idea for this effect?

Cheers

getting content from contentPane and placing it back

I have a following bit of code:

var originalUnreadAnnouncementsContent = "";
    function viewSpecificAnnouncement(id) {
        var unreadAnnouncementsTab = dijit.byId("unreadAnnouncementsTab");
        originalUnreadAnnouncementsContent = unreadAnnouncementsTab.domNode.innerHTML;
        unreadAnnouncementsTab.setHref("viewSpecificAnnouncement.html?id=" + id);
    }
   
    function returnToUnreadAnnouncementsTab() {
        dijit.byId("unreadAnnouncementsTab").setContent(originalUnreadAnnouncementsContent);       
    }
Syndicate content