JavaScript Interface

From version 0.9.12 XCTrack provides JavaScript interface.

For the webpages displayed in the Web page widget is method XCTrack.getLocation() available when the option “Allow web page to access XCTrack data” is allowed.

This method returns a JSON object serialized to a string or “null” if location is not available.

The fields are:

You can test it on https://xctrack.org/downloads/jsi.html (see the source code).

Scan this in a Web view widget to see it alive (don’t forget to allow access to XCTrack data).

Create your own widget

With this interface you can create your own widget. Have you created something spectacular and want to share it?

Feel free to contact us with the link to your widget, we’ll publish it here.

XCTrack
Help us
Development
Interfaces