Using 29-July-2013 Smartclient Explorer try the following code:
where http://XXXXXXXXXXXXXXXXXXXXXX is an url pointing to an html with the following code
In IE10, if you open the second tab ('Frames'), then, the content of the first one is hidden (if you select again the first tab, now is "empty"). If more tabs are added, the new content is available. If you close this second tab, then the content of the first tab is available again.
Code:
isc.TabSet.create({ ID: "tabSet", tabBarPosition: "top", width: 400, height: 200, tabs: [ {title: "Blue", icon: "pieces/16/pawn_blue.png", iconSize:16, canClose: true, pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_blue.png"})}, {title: "Frames", icon: "pieces/16/pawn_green.png", iconSize:16, canClose: true, pane: isc.HTMLPane.create({ contentsType: 'page', height: '100%', width: '100%', contentsURL: 'http://XXXXXXXXXXXXXXXXXXXXXX' })} ] }); isc.IButton.create({ title: "Add Tab", top: 225, click: function () { // alternate between yellow pawn and green cube if (tabSet.tabs.length % 2 == 0) { tabSet.addTab({ title: "Yellow", icon: "pieces/16/pawn_yellow.png", iconSize:16, canClose: true, pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/pawn_yellow.png"}) }); } else { tabSet.addTab({ title: "Green", icon: "pieces/16/cube_green.png", iconSize:16, canClose: true, pane: isc.Img.create({autoDraw: false, width: 48, height: 48, src: "pieces/48/cube_green.png"}) }); } if (tabSet.tabs.length == 1) tabSet.selectTab(0); } }); isc.IButton.create({ title: "Remove Tab", top: 225, left: 110, click: function () { tabSet.removeTab(tabSet.tabs.length-1); } });
Code:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> <title>Test</title> </head> <frameset cols="0%,0%,*" frameborder="no" border="0" framespacing="0" rows="*"> <frame name="frame1" scrolling="no" src="about:blank"></frame> <frame name="frame2" scrolling="no" src="about:blank"></frame> <frameset cols="*" frameborder="no" border="0" framespacing="0" rows="100%,*"> <frame name="frame3" scrolling="no" src="http://www.smartclient.com"></frame> <frame name="frame4" scrolling="no" src="about:blank"></frame> </frameset> </frameset> <frameset> <noframes> <body>Frames not available</body> </noframes> </frameset> </html>
In IE10, if you open the second tab ('Frames'), then, the content of the first one is hidden (if you select again the first tab, now is "empty"). If more tabs are added, the new content is available. If you close this second tab, then the content of the first tab is available again.
Comment