I'm new to WTP so excuse me if the solution to this is obvious. When i define and use a class from within the same file i get nice code assist help, i also get code assist for classes from the standard libraries. Unortunatly, when i try to use code and declarations from one file in another file i no longer get t he nice code assist features. I have searched the web and tried a couple of things, making shoure JS is enabled for the project, making sure the folder the scripts are in is added to the JS source folder list and even trying making a new folder with the decleration files in and adding it as a library. I would really like ot get this feature working so any help would be appreciated.
you can try spket IDE. after install, you need to config javascript profile to get code assist works for you.
Related
I am using Eclipse IDE for PHP and now that I started using also JS I am missing the autocomplete options. I do not know if they're missing because I did something wrong or because the variables are not defined yet (similiar to MATLAB). Autocomplete works great with PHP, HTML and CSS but not with JS.
I tried the classic
> Window > Preferences > JavaScript > Editor > Content Assist > Advanced
and
Installing extensions
but it did not help. I also tried to reference to some external files, but I am pretty sure that's not what is wrong.
I've been searching the whole day and I did not find an actual answer. As Eclipse has so many multiple options to adjust everything, I am getting a bit overwhelmed with that...
I would appreciate someone explaining to me how the autocompletion works. Where and whwn does it look for the suggestions (definitions in the js file or in the whole script) and why does it not show the DOM methods like window.onload or document.getElementById for example. Is this normal because there is no window/document yet or do I have to check some checkboxes in order to make eclipse do that?
The best content assist (and validation and more) for JavaScript and all dynamic web languages is available in the CodeMix plugin for Eclipse.
Here's a specific comparison between Eclipse JSDT and CodeMix.
You can install CodeMix from the Eclipse Marketplace here.
Hope that helps!
I am creating a HTML page where I need to count of files present in the specific folder in same project package, I tried to write the code in javascript but have not succeeded yet. Most of the question threads mention about "ActiveXObject" to be used but that itself does not work for me. Reference: JavaScript: Read files in folder Can anyone help me in achieving this? Please Suggest any Idea if this can't be achieved only by javascript lang.
HTML + JavaScript in your case is frontend technologies unless you use javascript as backend(nodejs) you won't be able to read project folder contents.
In our project, we want to add a new javascript project include javascript and css, it is an front size project, and there are many module js which will be merged into main js, at the same time, the main js will be compressed into a *-min.js just like jquery. but now all the process is manually and easy to get mistake. may I know is there a tool or eclipse plugin to handle js project like this? or is there any better manner to process? thanks.
If you were asking for javascript ide, try http://www.jetbrains.com/webstorm/
Check out http://closure-compiler.appspot.com/, which also has a downloadable jar and REST api
I have a HTML file, along with some JS and CSS files, in a project I have been working on, and am trying to put them onto my GitHub account. I created a new repo, but when I tried to add the files (some are in folders), I didn't know how to. The website isn't very helpful and I'm really stuck. Could anyone tell me how to upload them? I'm new to GitHub and so far very confused by it.
Thanks a lot in advance xx
If you are using windows, try github for windows application. It's easy way to start using github if you are new to it.
I'm combining multiple js files using YUI Compressor. The command works successfully and outputs a combined file properly.
When I point my page to it, however, it doesn't seem to be read properly and I get this error in the Javascript error console.
YAHOO is not defined
I've tried using the --nomunge and --preserve-semi options but still get the same error.
Any ideas?
are you sure you're including the yahoo YUI js file before your script?
the variable YAHOO is defined within yui.js, so that script needs to exist and be loaded before you attempt to run any javascript that uses it.
Dave,
Hard to know what the problem is without a link to the compressed file.
You may also want to post those links to the dedicated YUI Compressor discussion forum on YUILibrary.com:
http://yuilibrary.com/forum/viewforum.php?f=94
Compressor's developers are there, as well as an interested community of fellow implementers.
-Eric
Did you try to jslint your code?
It may help you detect JS errors
It can usually be integrated in your IDE(I use Textmate), and warn you when you save your js file.
A poor man option is to use the online one at: http://www.jslint.com
Another option is to use a softer compression tool like jsmin to debug the problem. One is hosted here
You compress your files. Run your app, and usually your JS debugger will show you the problem.