AjaxAgent (targetFunction, async, bForm)
Description
AJAX代理函式物件。
Position
AjaxAgent.js
Parameters
Parameter
|
Description
|
targetFunction
|
AJAX服務路徑。
|
async
|
設定是否使用非同步呼叫。
|
bForm
|
設定是否送出資料內容為網頁表單。
|
Properties
Property
|
Description
|
none
|
none
|
Methods
Method
|
Description
|
Open(strMethod, targetFunction)
|
開啟一個連線,參數strMethod指定連線的指令動詞,targetFunction為AJAX服務路徑,當AjaxAgent函式物件本身有指定targetFunction參數,則函式物件會自動呼叫Open方法,不需另行呼叫。
|
SendRequest(pPostData, pSucceed, pComplete, pFailed, pStep)
|
送出查詢資料,參數pPostData為查詢資料可以是String物件、XMLDOMDocumennt物件或其他物件,pSucceed、pComplete、pFailed、pStep為Function物件,分別於查詢成功、查詢完成、查詢失敗、查詢狀態改變被呼叫。
|
©2015 Supergeo Technologies Inc.
|