Ajax

Description

An AJAX wrapper for client server interaction via JSON RPC

Files

  • lib/ajax.js

Help

<none>

Maintainer

http://www.mapbender.org/Christoph_Baudson

License

Copyright © 2009, Open Source Geospatial Foundation This program is dual licensed under the GNU General Public License and Simplified BSD license.  http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt

Summary
AjaxAn AJAX wrapper for client server interaction via JSON RPC
Properties
requestCountcounts the number of requests that have been made
NotificationAn AJAX notification (it doesn’t expect a reply from the server)
Functions
Mapbender.Ajax.Request
RequestAn AJAX request (it expects a reply from the server)
Functions
Mapbender.Ajax.Request
sendSends the request to the server side

Properties

requestCount

Description

counts the number of requests that have been made

Notification

Description

An AJAX notification (it doesn’t expect a reply from the server)

Files

  • lib/ajax.js

Help

<none> Maintainer: http://www.mapbender.org/Christoph_Baudson

License

Copyright © 2009, Open Source Geospatial Foundation This program is dual licensed under the GNU General Public License and Simplified BSD license.  http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt

Functions

Mapbender.Ajax.Request

Parameters

options.url(String) The URL or the server side script
options.type[optional] (String) “POST” (default) or “GET”
options.log[optional] (Boolean) logs the request as Mapbender.Notice (default: false)
options.method[optional] (String) The name of the method that is called on the server side (default: “”)
options.parameters[optional] (Object) arguments being passed to the method given above
<deprecated variable name>[deprecated] <type and description>

Request

Description

An AJAX request (it expects a reply from the server)

Files

  • lib/ajax.js

Help

<none>

Maintainer

http://www.mapbender.org/Christoph_Baudson

License

Copyright © 2009, Open Source Geospatial Foundation This program is dual licensed under the GNU General Public License and Simplified BSD license.  http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt

Summary
Functions
Mapbender.Ajax.Request
sendSends the request to the server side

Functions

Mapbender.Ajax.Request

Mapbender.Ajax.Request = function (options)

Parameters

options.url(String) The URL to the server side script
options.type[optional] (String) “POST” (default) or “GET”
options.log[optional] (Boolean) logs the request as Mapbender.Notice (default: false)
options.method[optional] (String) The name of the method that is called on the server side (default: “”)
options.parameters[optional] (Object) arguments being passed to the method given above
options.callback(Function) Will be called after the request is finished
options.scope[optional] (Object) the callback will be executed within the scope of this object

send

this.send = function ()

Description

Sends the request to the server side

Mapbender.Ajax.Request = function (options)
this.send = function ()
Sends the request to the server side
Close