1

Wialon Playground

Topic: Wialon Playground

We updated our Wialon Playground to make it even more usefull

Here is some of its features

  • number of working demos
  • fork any existing demo to play with it in way you like
  • create your custom demos and share with others
  • save your code as easy as press Ctrl+S
  • get working demo code with 'Get code' button

Try it now, feedbacks are welcome!

2

Wialon Playground

Re: Wialon Playground

I create an app to track unit and I use wialon javascript sdk (unit trace) when run app in debug mode the map appear but when run app in production mode the map does not appear. I don't know what is the problem.Please help me.

3

Wialon Playground

Re: Wialon Playground

Hello heba

Can you expIain what is "production" and "debug" mode in your case?

PS Its better to create topic for such questions

4

Wialon Playground

Re: Wialon Playground

is there any documentation on wialon playground  capabilities.Is it possible to run http get request to external server permanently from here

5

Wialon Playground

Re: Wialon Playground

siju
There's no any hidden features on Wialon Playground

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

All samples have jQuery on it so you can use jquery.ajax to communicate with external server

6

Wialon Playground

Re: Wialon Playground

The playground is very helpful for getting to grips with the SDK - thanks for making it available...

7

Wialon Playground

Re: Wialon Playground

It's really helpful

8

Wialon Playground

Re: Wialon Playground

Keep on scrolling, nothing interesting in this post...

9

Wialon Playground

Re: Wialon Playground

Hi!
Whatever example from playground (for e.g. https://sdk.wialon.com/playground/demo/app_auth_token) I try I always get the same error - post.html:101 Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin 'null' in a call to 'postMessage'.
    at listener (https://hst-api.wialon.com/wialon/post.html:101:16)
How to fix it?

10

Wialon Playground

Re: Wialon Playground

Hi gly2008
Try to open sample using http:// protocol via webserver, not file://

11

Wialon Playground

Re: Wialon Playground

shmi
I did but <script src="https://hst-api.wialon.com/wsdk/script/wialon.js"></script> results the same mistake when executing.

12

Wialon Playground

Re: Wialon Playground

Screenshot pls with url you open

13

Wialon Playground

Re: Wialon Playground

http://prntscr.com/ondbb8

14

Wialon Playground

Re: Wialon Playground

gly2008
Issue not in code. I think its in URL address you open in browser. As I told you cant just double click on index.html file because it will be opened with file:// protocol. You have to use any webserver and open sample like http://localhost:8080/index.html

15

Wialon Playground

Re: Wialon Playground

shmi
Thanks!