2009-06-25 23 views
0

我對我的項目AjaxPro的收到以下錯誤:和AjaxPro的錯誤OnTimeOut

Error: this.onTimeout is not a function 
Source: http://localhost:3405/ajaxpro/core.ashx 
Line: 407 

我知道這是什麼做的AjaxPro的釋放,但您有任何的一個版本,它不包含該錯誤?或者我該如何糾正它? 我已經從AjaxPro.info下載了最新版本,沒有任何運氣。

回答

1

請在JavaScript中使用異步調用,如:

function getServerTime() 
{ 
    test_Default8.GetServerTime(getServerTime_callback); // asynchronous call 
} 

// This method will be called after the method has been executed 
// and the result has been sent to the client. 

function getServerTime_callback(res) 
{ 
    alert(res.value); 
} 

這將解決您的問題。