<< Click to Display Table of Contents >>

 

AjaxAgent (targetFunction, async, bForm)

 

 

Description

AJAX agent object

 

Position

AjaxAgent.js

 

 

Parameters

 

Parameter

Description

targetFunction

AJAX service path

async

To set whether to use asynchronous call.

bForm

To set whether to send data content in web form.

 

 

Properties

 

Property

Description

none

none

 

 

Methods

 

Method

Description

Open(strMethod, targetFunction)

To create a connection. The strMethod parameter assigns the verb to connect; targetFunction is AJAX service path. If AjaxAgent object has assigned targetFunction parameter, the object will automatically call Open method without additional call.

SendRequest(pPostData, pSucceed, pComplete, pFailed, pStep)

To send query data. The pPostData parameter is to query data. It can be String object, XMLDOMDocument object and other objects. pSucceed, pComplete, pFailed, and pStep belong to Function object, which can be called respectively while the query is succeeded, completed, failed, and changed.  

 

 


©2015 Supergeo Technologies Inc.