How can i run a Javascript from Eclipse.
I have installed JSEclipse plugin.
But cant find a way to execute a Javascript from it.
How can i run a Javascript from Eclipse.
I have installed JSEclipse plugin.
But cant find a way to execute a Javascript from it.
but what about JSEclipse plugins..??
I mean they are there for a reason. right....??
Hi,
Could you elaborate on what you mean by Running Javascript. Javascript needs an HTML page to run; on some event like onload, onclick etc.
JSEclipse plugins help you with Syntax Highlighting, Content Assist, Code Formatting, Error Reporting and the like.
--Sahil
Ok.......
1)I have eclipse and installed JSEclipse with the JS plugins and all
2)I write a simple javascript code by going to
new->javascript->.js
3)After writing a javascript and embedding it within html code, when i press right click on the program there is no "run" or execute option, except there is only "open dialog" option.
4)Am I doing something wrong here.....??
Hi Suhassr,
In order to run a javascript you need a built-in java script processor, which webbrowsers come with or custom javascript processor which will give intefaces to do get the output..
regards,
lokesh
ok, so is there no solution for my problem....??
I've described a technique for running javascript files withing Eclipse using Rhino and the external tools functionality in Eclipse in my blog -> martin-toshev . com/index.php/software-engineering/tips-and-tricks/76-running-javascript-from-eclipse
Last edited by admin; 11-05-2012 at 06:58 AM.
Make a separate javascript file and append it into your project by using headScript.
Hello,
Do the declaration and initialization part within the Header tag and recall it while putting the structure in the body tag. Hope it works if not please show the codes you have incorporated.
Thanks