GpsGate Server JavaScript API

GpsGate  1.0.0

GpsGate Server JavaScript API > GpsGate > GpsGate.Server
Search:
 
Filters

static Class GpsGate.Server

namespace

Properties

_callback - private object

container for hooks to the XSS calls

_getCallId - private integer

same as Franson.Util.getUniqueId but added here to avoid dependency

Methods

call

Deferred call(url, method, [params])
standard WS-call method (used by the Service proxies) todo: allow choosing between GET/POST calls?
Parameters:
url <string>
method <string>
[params] <object>
Returns: Deferred

callJSONP

private void callJSONP()
same as above but using JSONP/XSS calling todo: could use Mochi.DOM for some stuff here but better to keep dependencies down(?) todo: would actually be possible to make this cancellable by using a middle man as callback, but not sure it's worth it. todo: see http://trac.mochikit.com/ticket/258 todo: not fully tested..
Returns: void

getServerName

string getServerName()
todo: rename getGpsGateServerRelativePath? todo: create method to create absolute path from relative? todo: deprecate? (only used in BT and webmap)
Returns: string
server name url (including protocol and port number)


Copyright © 2009 Franson Technology AB, Sweden. All rights reserved.