我想使用jQuery UI(來源:http://jqueryui.com/demos/tabs/)中的選項卡在每個選項卡上使用WebGL GLGE顯示COLLADA dae文件(來源:http://www.glge.org/)。標籤應根據xml文件動態生成。一切按計劃運行,只有3D對象的渲染不起作用。jQuery選項卡菜單和WebGL
我現在嘗試了不同的方法,但都沒有工作。結果每次都是一樣的。 3D COLLADA對象僅在第一個選項卡上呈現。 即使我使用基本和靜態document.write語句而不從我的xml中檢索數據,只顯示第一頁上的建築物。
例如:
<div id="tabs">
<div id="tabs-1">
//ONLY THIS OBJECT IS RENDERED
<iframe src="glge/index_1.html" height="400" width="400"></iframe>
</div>
<div id="tabs-2">
<iframe src="glge/index_1.html" height="400" width="400"></iframe>
</div>
<div id="tabs-3">
<iframe src="glge/index_1.html" height="400" width="400"></iframe>
</div>
如果我使用不同iframe出多於一個的iframe中呈現了jQuery標籤的。所以
<iframe src="glge/index_1.html" height="400" width="400"></iframe>
<iframe src="glge/index_1.html" height="400" width="400"></iframe>
<iframe src="glge/index_1.html" height="400" width="400"></iframe>
<div id="tabs">
//codehere
</div>
帶來三個呈現的3D對象上面的標籤。
希望你能理解我的問題並幫助我。
編輯: 我剛剛上傳了上面的 「簡單」 的例子。你可以看到它在: http://korb.cwsurf.de/tmp/buildingdetail_simple.html
問候, faiko
+1太棒了!愛它! – 2012-01-13 04:15:58