dankhan
24 Mar 2007, 9:16 PM
Hi ,
I have a simple layout with 3 regions each containing a contentPanel. I'm trying to have a link in the main panel refresh the contents in another panel with a new url when clicked on - sounds pretty simple?
I've tried to use the SetUrl of the contentPanel and refreshing the contents, but it just shows the loading message and no new page content is displayed. Inspecting the request/response through firebug shows that the response was retrieved okay, but nothing is refreshed in the panel.
I also tried using the updatemanager but to no avail either.
summaryPanel has been created and added to the layout using:
summaryPanel = new YAHOO.ext.ContentPanel('summary', {fitToFrame: true});
Using setUrl:
summaryPanel.setUrl({url: 'summary.html', scripts: true}, {}, true);
summaryPanel.refresh();
also tried
summaryPanel.setUrl('summary.html', null, true);
summaryPanel.refresh();
Using UpdateManager:
var mgr = summaryPanel.getUpdateManager();
mgr.loadScripts = true;
mgr.setDefaultUrl('summary.html');
mgr.refresh();
I simply need a way of clicking a link in my main panel to refresh the contents of another panel - any ideas or examples (currently using 0.33)?
Cheers,
-Dan
I have a simple layout with 3 regions each containing a contentPanel. I'm trying to have a link in the main panel refresh the contents in another panel with a new url when clicked on - sounds pretty simple?
I've tried to use the SetUrl of the contentPanel and refreshing the contents, but it just shows the loading message and no new page content is displayed. Inspecting the request/response through firebug shows that the response was retrieved okay, but nothing is refreshed in the panel.
I also tried using the updatemanager but to no avail either.
summaryPanel has been created and added to the layout using:
summaryPanel = new YAHOO.ext.ContentPanel('summary', {fitToFrame: true});
Using setUrl:
summaryPanel.setUrl({url: 'summary.html', scripts: true}, {}, true);
summaryPanel.refresh();
also tried
summaryPanel.setUrl('summary.html', null, true);
summaryPanel.refresh();
Using UpdateManager:
var mgr = summaryPanel.getUpdateManager();
mgr.loadScripts = true;
mgr.setDefaultUrl('summary.html');
mgr.refresh();
I simply need a way of clicking a link in my main panel to refresh the contents of another panel - any ideas or examples (currently using 0.33)?
Cheers,
-Dan