Hi ,
I am dynamically loading the page with setting href while creating the content pane. When I am adding the loaded page to the PageContainer as a child the page is loading again.
This repeated loading causes the problem for me.
contentPane = dojo.widget.createWidget("ContentPane",{widgetId:this.name,href:this.url,cacheContent:false,executeScripts:true,scriptSeparation:false});
this.contentPane.addOnLoad(window,addOnLoadFunction);
if(contentPane){ pageContainer.addChild(contentPane); }
Please help me.
-Raj

Is your pageContainer set to
Is your pageContainer set to refreshOnShow? If so, when you addChild is your contentPane being displayed immediately? Problem sounds more like with PageContainer than ContentPane, can you show us either a working test page or the full src code for your JS? (including the parameters you are using with your PageContainer)
-Karl
Is your pageContainer set to
Is your pageContainer set to refreshOnShow?
NO
If so, when you addChild is your contentPane being displayed immediately?
YES, I observed, while creating the contentpane first request is done(got page response data) but not showing the page and after adding content pane to page container, second request is
made and after getting response it showing the page.
Page container is : div dojoType="PageContainer" widgetId = "CartPages" >
I am calling pageContainer.selectChild(pageName,undefined) to show the page by calling this line of code in the loading page addOnLoad function.
I am not using any extra parameters.
Thanks,
Raj.