2013-09-24 27 views
0

我創建了一個dhtmlxwindow對象,並加載使用ATTACHURL一個jsp頁面。Dhtmlxwindow ATTACHURL問題

dhxwindow.attachURL( 'myPage.jsp');

和myPage.jsp, 我已創建的佈局對象。

var mylayout = new dhtmlxLayoutObject(document.body, '3u'); 
toolbar = mylayout.cells('a').attachToolbar(); 
toolbar.addButton("Validate", 0, "", "images/queryValidation24.png", "images/queryValidation24.png"); 
toolbar.addButton("Preview", 1, "", "images/previewBtn24.png", "images/previewBtn24.png"); 
toolbar.setAlign('right'); 

//和我有其他dhtmlxcomponents在其它細胞

問題是我無法查看工具欄。

會有什麼問題呢?

回答

0

首先你需要使用正確的語法爲大寫字母: VAR mylayout =新DHTML X LayoutObject(document.body的, '3 ü');

主頁:

dhxWins = new dhtmlXWindows(); 
dhxWins.enableAutoViewport(false); 
dhxWins.attachViewportTo(document.body); 
dhxWins.setImagePath("../dhtmlxWindows/codebase/imgs/"); 
w1 = dhxWins.createWindow("w1", 100, 100, 500, 500); 
w1.attachURL("layout_toolbar_test.html"); 

附頁:

var mylayout = new dhtmlXLayoutObject(document.body, '3U'); 
toolbar = mylayout.cells('a').attachToolbar(); 
toolbar.addButton("Validate", 0, "", "images/queryValidation24.png", "images/queryValidation24.png"); 
toolbar.addButton("Preview", 1, "", "images/previewBtn24.png", "images/previewBtn24.png"); 
toolbar.setAlign('right'); 

結果(對不起,沒有您的圖像文件): enter image description here