Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to reference VorlonJS without automatically starting the traces (Core.Start) #43

Closed
dvoituron opened this issue May 7, 2015 · 4 comments
Assignees

Comments

@dvoituron
Copy link

How to start the client VorlonJS only when the user want. For example, first referencing the vorlon.js file, and later execute "VORLON.Core.Start" when the user clicks on a button in this web page?

@meulta meulta self-assigned this May 7, 2015
@meulta
Copy link
Contributor

meulta commented May 7, 2015

Hello,

You can already do that by including in your project the vorlon.max.js or vorlon.js file that you can get from the github project. We only add the call to Start on the fly when requesting it from the server.

After referencing it on your html page, you can call VORLON.Core.Start whenever you want.

That should do the trick for now and I will add a http://yourdomain/vorlon.nostart.js served by the server asap.

@dvoituron
Copy link
Author

Thanks.

@meulta
Copy link
Contributor

meulta commented May 7, 2015

Done here : 72522ec

I am updating the npm package also.

You can now reference the client script using

<script src="http://localhost:1337/vorlon.autostartdisabled.js">/<script> or <script src="http://localhost:1337/vorlon.max.autostartdisabled.js">/<script> Then you just have to call VORLON.Core.Start(...) :)

@meulta
Copy link
Contributor

meulta commented May 7, 2015

And... done ! ;-)

@meulta meulta closed this as completed May 7, 2015
deltakosh pushed a commit that referenced this issue Jun 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants