Javascript editor for EaselJS code complete - javascript

What javascript editor I can use for EaselJS code complete?
I tried Aptana plugin for eclipse but it did not work out, I also tried making an uncompressed file using below command and import the uncompress file
node ./build.js --format=PRETTY_PRINT
I also tried to look for sdocml for EaselJS but I could not find any.
Does any one know how we can get EaselJS code complete?
Thanks
-Maaz

though this is nothing official and unfortunately I haven't had the time to adjust this to EaselJS 0.6.0 here is a code-completion for SublimeText: http://indiegamr.com/easeljs-codecompletion-for-sublimetext2/ - but be aware, this is no 'intelligent' completion as you might be used to from Java or AS3, but it includes the methods and attributes ect. from 0.5.0
There is also a TypeScript-definition for CreateJS: https://bitbucket.org/drk4/createjs_ts_definitions (unfortunately also only EaselJS 0.5.0) - but TypeScript is a way better choice than pure JS if you want a good/intelligent code-completion. - But maybe you can find something for 0.6.0 for this on the web.
*Edit: This looks like an updated version for TypeScript: https://nuget.org/packages/easeljs.TypeScript.DefinitelyTyped/

Related

Visual Studio Code autocompletion doesn't seem to work for JavaScript on foreign libraries e.g. glmatrix

I know that the prediction and autocomplete work on javascripts own functions but they don't seem to work if I try to use it with foreign libraries. Do I need to tell VSC where those .js-files are that should be included?
It works on my own created functions btw. which is not really helpful when you're mostly working on other libraries..
The most similar question I've found so far has no working answers to it: Visual Studio Code enable suggestion code JavaScript like in WebStorm
Any library that has proper JSDoc would support auto completion in VS Code. Since glMatrix has it, it could be done without a problem.
Here's working image:

javascript/flash library for file upload with file size limit and progress bar

Is there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.
I found these (using flash):
Uploadify - not many releases, latest 12/2010, no documentation (!)
SWFUpload - latest release 03/2010, documentation
fancyupload - looks buggy.
phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?)
plupload
New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?
Check jQuery-File-Upload. It's quite alright. (Also handles file size. Thats what you mean?)
A new contender seems to be FileAPI, it uses HTML5 APIs, with flash as a fallback:
https://github.com/mailru/FileAPI
Here is an article about it on Smashing magazine: http://coding.smashingmagazine.com/2013/10/11/we-wanted-to-build-a-file-uploader/
Plupload and Uploadify look best up to my current research point...
I tried swfupload, it looked fine at the first sight but as I tried to use it, it started to be more and more cluttered, many of the features you see in the demo are unexpectedly not standard parts of the library, you have to get the example code and hack it a lot, it's not configurable (e.g. queue timeouts) etc... Refrained from using it.

Eclipse Indigo with Aptana Studio 3 - Code hinting doesn't work when Dojo libraries are local

I've just setup Eclipse with Aptana Studio 3 and have been trying to get code completion / code hinting / autocomplete to work with mixed results.
I've followed the instructions here: http://wiki.appcelerator.org/display/tis/JavaScript+Library+Support
What I have discovered through testing is that when you install the .sdocml file and nothing else in a new project, it works fine.
As soon as I add a local copy of Dojo into the project the code hinting no longer works correctly.
I tried excluding the directory from view with a filter but that excludes it from the server so you can't use it. I've also tried removing the Dojo folder from Indexing but that changes nothing either.
If I load Dojo from a CDN, like Google, then I can use code completion.
The issue is that Eclipse picks up a parsed reference to dojo instead of the one from the sdocml file.
The problem seems, so far, to be confined to typing 'dojo.' but 'dijit.' and 'dojox.' work okay, maybe because of the parent-child relationship between those sub-libraries, if I were to guess.
I don't know if this is an Aptana bug or an Eclipse bug, but either way, it's a problem.
Does anyone know how to prioritize the code hinting sources and / or exclude certain directories from being a hinting source? Or is there another solution?
Thanks in advance,
Ken
Edit: Now that I have more code in the test project hinting does not work at all for 'dojo.' but still works fine for 'dojox.' and 'dijit.'. Only native JS methods hinting is available as a subset of 'dojo.'

Netbeans 7 - jquery code completion [duplicate]

I'm using NetBeans for PHP.
When I edit a .js file, it gives me javascript code completion.
How can I get it to also give me jQuery code completion?
First go to Tools -> Options -> Miscellaneous and click on the Javascript tab,
make sure the targeted browsers are configured properly, code completion changes by the minimal version of the targeted browsers to make sure that the functionality is supported.
You also need to add the jquery js file to your project so netbeans would be able to parse it and to properly add code completion.
These answers are misleading because jQuery no longer self-documents using "scriptdoc." Version 1.1.4 was the last to have this. Anything newer than that (>=1.2 ~mid-2007) is gutted.
amending that: VSdocs actually work:
http://code.jquery.com/jquery-1.4.1-vsdoc.js
or http://www.asp.net/ajaxlibrary/cdn.ashx for version after 1.4.1
i suspect using a non-minified version of jquery would help.
For Netbeans 6.7 / 6.8 / 6.9, just follow the guide here:
Using jQuery to Enhance the Appearance and Usability of a Web Page
There's a section about half way down called "NetBeans Code Completion and API Support".
Worked no problem for me.
Note: "Choose the uncompressed version, i.e., 'Development', before downloading the jQuery library. Using the uncompressed version will allow you to examine the JavaScript code in the editor, and aid in any debugging processes."
Tip: Tools / Options / Miscellaneous / JavaScript. In the "Targeted Browsers" section, ensure IE is "6 or later". Otherwise, you'll get "Not supported" errors in the code completion pop-up and a lot of the commands will be struck out.
I use netbians 7.x for development on drupal 6.x. Autocomplete works after adding non-minified version jquery-1.2.6.js file to the root folder of the project (so it will be with any version).
It is important to specify the version of the file name, without -1.2.6 will not work!
The basic rule is that your jQuery (or for that matter any js lib) should be found in the same project you need auto complete to work. So just place jquery-1.x.y.js somewhere in your project (that can be reached by NetBeans as it reaches your js file) and you should be good to go.
To test you can put the jQuery file in the same folder as your js file being edited.
Make sure your Internet connection is working, because NetBeans downloads documentation when is needed. I think that NetBeans downloads it from there, but this is only my assumption. This is parsing friendly XML document with whole and recent jQuery documentation.

How to identify the javascript canvas library

How to identify the javascript canvas library used by a certain website? (e.g. processingjs or ...)
Well, install firebug. On the net tab, and js subtab, you will find all the library loaded. And also install library-detector add-on to determine which library is used.
And make sure, net is enabled.
View source or use firebug to view the included scripts. If you see 'processing.js', for example, it may be used. If you don't see it, well, it still may be used.
You have to dig into the included scripts to be sure.
EDIT:
Loos like IXL uses YUI to for general javascript utilities/DOM help/namespacing. As far as I can tell, no canvas library was used -- basic shapes aren't that hard to draw with canvas.

Categories