stonecracker
15 Nov 2006, 8:33 AM
var iframe = YAHOO.extDomHelper.append(document.body, {id:somePanelId, tag: 'iframe', src: someLink});
layout.add('center', new YAHOO.ext.ContentPanel(iframe, {title: something});
The code demonstrated above is a common usage of the contentpanel in borderlayout and I found there are actual TWO request send to server instead of one.
remove
src: someLink and explictly add the following after the last line will generate only one request:
iframe.src = someLink;
Is it bug or something I'm missing?
PS: Congratulations to the new domain and new site:)
layout.add('center', new YAHOO.ext.ContentPanel(iframe, {title: something});
The code demonstrated above is a common usage of the contentpanel in borderlayout and I found there are actual TWO request send to server instead of one.
remove
src: someLink and explictly add the following after the last line will generate only one request:
iframe.src = someLink;
Is it bug or something I'm missing?
PS: Congratulations to the new domain and new site:)