How to create and debug Javascripts (outside Storyline)?
Jan 09, 2014
I like to use Javascripts in storyline. To develop Javascript I would love to use a Javascript editor to debug and test my scripts before import them to storyline.
I don’t want to write html but just a simple Javascript and see some output on the console. I search the web for possibilities, but somehow I can't find a simple editor for standalone Javascript.
Most Java developers say Eclipse is the best option. I tried for a day now to get it working, but I can’t get the last step right. I feel like I am almost there, but failed to implement these solutions:
http://ted-gao.blogspot.co.uk/2012_06_01_archive.html (missing javascript-runner.jar file)
and
http://z0ltan.wordpress.com/2012/12/04/configuring-eclipse-to-run-standalone-javascript-files-using-node-jsgoogle-v8-engine/ (error in eclipse while running)
Does anyone have a solution or knows an easy editor??
Thanks alot
5 Replies
Hi Marcel and welcome to Heroes!
I don't have any suggestions to offer on debugging javascript, but did want to point you to our set of best practices for Javascript.
We do have a number of community members here who are well versed in Javascript, so I hope that they're able to assist you here!
You might take a look at the Javascript test environment that w3schools uses (the TryIt editor).
Example page for if-then statements:
http://www.w3schools.com/js/tryit.asp?filename=tryjs_ifthen
They provide a basic, simple HTML structure with a button that runs code.
You can change to code to anything you want.
You can't debug, per se. But, you can always add 'alert' statements to give you feedback.
Good luck and welcome to the Forum,
Paul K.
Thanks Paul and Ashley,
After a day browsing, installing and deinstalling software, I found something simular as you suggested, Paul. It was right under my nose: the codeacademy also has a work space for testing java:
http://labs.codecademy.com/#:workspace
A very simple and clean testing enviroment. Maybe a suggestion to put a link to this site on the storyline webpage?
Marcel
Thanks for sharing that link here Marcel.
Hi Marcel, thanks for sharing the link. Now I can scrap my old editor (Until now, I used http://www.bluej.org/, but it required downloading and installation) and use this online editor instead
This discussion is closed. You can start a new discussion or contact Articulate Support.