2014-09-30 64 views
1

你好,我有選擇二分量的問題,因爲這段代碼捕獲onChange事件:選擇2平變化鉻不會觸發第一次

$(document).ready( 
function() { 
    x$("#{id:comboBox1}").select2().on("change", function(e) { 
      XSP.partialRefreshPost("#{id:divView}",{ 
     onStart: function() { 
      // do something when the partial update is finished 
      alert("start...") 

     }, 
     onComplete: function() { 
      // do something when the partial update is finished 
      alert("stop...") 
     } 
     }); 
     }) 
} 
); 

谷歌瀏覽器產生這個錯誤不能解決X $()函數(如果你重新載入頁面的工作) 在Internet Explorer工作well..I不知道怎麼解決。

Uncaught TypeError: undefined is not a function home.xsp:129x$ home.xsp:129j jquery-1.11.0.min.js:2k.fireWith jquery-1.11.0.min.js:2n.extend.ready jquery-1.11.0.min.js:2K jquery-1.11.0.min.js:2 

有人有任何建議嗎?

TNX你

回答

0

爲了使用XSP.addOnLoad()代替$(document).ready()您的功能時,該文件已經被使用XPages滿載運行嘗試。

+0

沒什麼結果是一樣的 – 2014-10-01 11:30:54

相關問題