2011-09-13 73 views
0

我使用安裝了Firefox 3.6.3版本的Ubuntu 10.04 LTS版本。我在我的web應用程序中有一個JqGrid,我在Ubuntu系統上從Firefox訪問它。但我沒有看到導航欄圖標。此外jQuery選項卡不起作用。可能是什麼問題?JqGrid不適用於Firefox 3.6.3(Ubuntu 10.04 LTS)

操作系統:Ubuntu的10.04 的jqGrid:4.1.2版本的FireFox :版本3.6.3 標籤:jQuery的UI-1.8.1

顯示網格但導航欄圖標(添加/編輯/刪除/搜索/重新加載)不顯示。當我們點擊選項卡時,它不會更改選項卡。

@Update:。

我沒有一個鏈接:(對此感到遺憾,但在調試上的FireFox的JavaScript發現,我們正在呼籲事件的功能沒有得到解決

下面是代碼片段:

$("#userList").jqGrid('navGrid',"#pager1",{add:true,edit:true,del:true,search:true,refresh:true, 
        beforeRefresh: function(){ 
        $("#userList").jqGrid('setGridParam',{datatype:'xml'}).trigger('reloadGrid', [{page:1}]); 
        }}, 
        { recreateForm:true, 
         beforeShowForm:checkCookieExpireForUser 
        },{ 
         recreateForm:true, 
         beforeShowForm:checkCookieExpireForUser 
        },{ 
         recreateForm:true, 
         beforeShowForm:checkCookieExpireForUser 
       }); 
        function checkCookieExpireForUser(formid) { 
         var currentdate = new Date(); 
         var currentTime = currentdate.getTime(); 
         if(currentTime > cookiInfo[6]) { 
          window.location.href = '<%=request.getContextPath()%>/jsp/index.jsp'; 
         } 
        } 

此代碼在Firefox中執行它說,checkCookieExpireForUser是undefied

+0

你有一個示例URL嗎?我也用FF運行Ub​​untu。 –

回答

0

問題解決了。

下面是我如何解決這個問題。這對任何面臨同樣問題的人都有用。

In Firefox you need to add the function definition before the call. When I moved the definition before the call. JqGrid icons where displayed and it is working fine. 
相關問題