What would be a good browser-independent JavaScript programming environment?

My current project of my team involves rewriting search libraries in JavaScript. We are mainly looking for an installation that allows you to apply test development methods.

So far, we plan to use Vim to write code, without the IDE fancy. To generate the output, we will use the Spidermonkey shell environment. JSLint can serve as a medium syntax checker.

The essential question remains: how do you develop JavaScript (browser independent) programs? If we are already on the right track, perhaps you can provide us with some tips and tricks.

+4
source share
4 answers

You can test your code in Spidermonkey or Rhino (an older JS interpreter in Java), but you really don’t know which browsers it works in until you check your scripts in them!

I agree with the earlier poster, using a browser-independent library like jQuery is probably a good idea.

I did not use Spidermonkey, but I know that Rhino has a good graphical interface for debugging, which allows in the usual way: set breakpoints, clocks and go through the code.

+2
source

If you have the opportunity to rewrite all of this, you can consider jQuery.

This is essentially an agnostic browser. Or at least it requires much less sniffing than simple javascript.

+1
source

Only testing will make your JavaScript code browser independent.

+1
source

Yes, I use the same environment to develop stand-alone JS applications (vim + SpiderMonkey). I would only add that I made a small built-in IDE for reading / writing / running JS scripts on the server side. This is sometimes very helpful. Also, I am looking to use a WXJavascript project that seems very promising.

0
source

All Articles