JavaScript is the original and common name applied towards most flavors of a scripting language that originated on NetScape Navigator. Use this tag for questions regarding common implementations of ECMAScript, JavaScript, JScript, etc. JS does not typically refer to its ECMA-cousin, ActionScript.

learn more… | top users | synonyms

0
votes
0answers
128 views

What is Highcharts using to generate their JavaScript api documentation? [closed]

The Highcharts 3.0 beta was announced today and there's a healthy discussion occurring on Hacker News. In the thread of comments about the release was a comment from Torn about what Highcharts is ...
3
votes
5answers
271 views

How would you architect an application which is largely a collection of flowcharts?

I am working with a history teacher on a history app. He has like 200 flowcharts that he wants to put into the app (among other things). The two likeliest-looking ways to do it: HTML/CSS. The big ...
9
votes
4answers
1k views

Did jQuery kill the JavaScript discussions? [closed]

There are over 100,000 questions on Stack Overflow tagged as questions relating to JQuery troubleshooting/usage. Compare this to the 124,000 questions on stack overflow that are tagged for JavaScript ...
1
vote
1answer
150 views

Value of frameworks for mobile web applications [closed]

Longer version, see below for the TL;DR As a developer with a strong background in the development of "classic" web applications I have been thinking about mobile web application architectures. One ...
-2
votes
1answer
96 views

Mobile Javascript Coding Standards Cueme browser

Is there a more generic Javascript Standard of Mobile Handheld devices. I could refer to the following links for generic standards. http://javascript.crockford.com/code.html or ...
0
votes
2answers
73 views

Encapsulate external JavaScript library

I am about to develop a ASP.NET MVC 4 project that will make use of maps. Our company has it's own map API which is very basic at the moment, but is intended to be further developed in future to match ...
19
votes
11answers
6k views

How necessary is it to learn JavaScript before jQuery? [closed]

In my opinion, when I looked at JavaScript, it looked like not my cup of tea. When I came across jQuery, I loved it. I sat and watched Nettuts+ 15 days of jQuery screencasts, 1 year later and now I'm ...
2
votes
1answer
118 views

Searching for text within a webpage

I'm currently designing a search algorithm for a document, and just got curious about this while designing the algorithm: how do web browsers search a webpage? For example, in Google Chrome, you can ...
0
votes
0answers
53 views

Javascript template engine for generating new HTML for insertion to the DOM [closed]

I have a template that looks like this: <div class="users"> <a class="username">{{ username }}</a> <br> <span class="age">{{ age }}</span> </div> ...
13
votes
6answers
1k views

Self-referencing anonymous closures: is JavaScript incomplete?

Does the fact that anonymous self-referencing function closures are so prevelant in JavaScript suggest that JavaScript is an incomplete specification? We see so much of this: (function () { /* do ...
1
vote
5answers
1k views

Mixing jQuery with JavaScript

I just asked this question at SO about some bugginess I am experiencing with jQuery and IE8, and someone commented that he was appalled that I would mix JavaScript with jQuery (he has since deleted ...
5
votes
6answers
804 views

When am I ready to start using Jquery for Javascript? [closed]

I was told not to use Jquery as a beginner because it would hamper my learning of Javascript. Now I've read a couple books on Javascript, read loads of sites, and made a Javascript web app. Am I ...
4
votes
1answer
145 views

Is it called an instance in Javascript?

Say I have a function. function foo(){ //do stuff } And then I create an object of that function. var fooObj = new foo(); What is fooObj called? An instance, An object instance, or something ...
24
votes
4answers
3k views

Does Dart have any useful features for web programmers?

http://www.dartlang.org/ I've checked out the site very briefly, and got curious. Is there any advantages of using Dart? Is it just a replacement for JavaScript? It looks like simpler Java. Writing ...
5
votes
2answers
327 views

Are side-effects in Array's “every”, or “some” bad?

I've always been taught that having side-effects in an if condition are bad. What I mean is; if (conditionThenHandle()) { // do effectively nothing } ... as opposed to; if (condition()) { ...
23
votes
11answers
2k views

Is javascript worth learning if you do not plan on being a web developer?

I heard Javascript is a full language just like c++. Is this true? What else is it good for programming besides web stuff?
11
votes
14answers
8k views

Differences between JavaScript and Python [closed]

Recently, in a job interview, I was asked what the difference between Python and Javascript is. The interviewer had framed the question as: Javascript is an interpreted language which runs in a ...
-1
votes
1answer
94 views

What do I need to know re. Javascript frameworks? [closed]

I recently asked this question on SO, which quickly became downvoted and closed. Clearly I lack a deeper understanding of JS, which I'm hoping you'll help me fill here. I'm a perfectly capable web ...
6
votes
1answer
351 views

Functional reactive programming — is Fay expressive enough?

So I'm doing a fairly involved javascript/html client with lots of ajax calls and other involvements of callback-ism. I'm entertaining the thought of using Fay for this purpose. I'm aware of Elm. ...
2
votes
1answer
145 views

Shift Javascript framework - What pattern is this? MVP, MVC or something else

I have created a very tiny framework to be able to get away from all the clutter while developing. The point of the framework is not to replace any library of choice but simply segregate the code to ...
1
vote
3answers
204 views

Server side JavaScript rendering

I have almost a 'best-practice' question that's been nagging at me for a while. When I use JavaScript libraries and APIs such as JQGrid or Google Maps, I tend to find myself creating server side ...
3
votes
4answers
259 views

How can I ensure a portion of my project's code remains in all derivative works?

I had an idea for a website. After much coding and thinking out the idea, I've got it to a decent stage. If I were someone else, potentially a more commercially-minded person, I might want to sell ...
2
votes
2answers
911 views

Is node.js a suitable server platform for financial applications?

Are there specifically any math related issues with Node.js and money that could cause my system to lose track of some of the money it's tracking? The reason that I ask is that PHP, because of it's ...
7
votes
3answers
261 views

Does javascript support numerically indexed arrays with a more optimized algorithm than an associative array?

I know that Python, Perl, Java, Lua and obviously C (as it's the only array that's in ANSI standard afaik) support faster looking of numerically indexed arrays than doing a hash lookup or anything ...
70
votes
15answers
4k views

Why do memory-managed languages retain the `new` keyword? [closed]

The new keyword in languages like Java, Javascript, and C# creates a new instance of a class. This syntax seems to have been inherited from C++, where new is used specifically to allocate a new ...
2
votes
1answer
134 views

In what ways can I test an image slideshow javascript code?

I have a slideshow of images (and links) on a page. These images are part of a JSON response to a request sent after the page loads. The slideshow is set to play at an interval of 2 seconds. The ...
0
votes
0answers
170 views

How do I validate a number in the box if the number should be greater than 60 (using javascript)? [closed]

<html> <head> <title>Mobile number validation using regex</title> <body> <script type="text/javascript"> function regIsDigit(fData) { var reg = new ...
4
votes
2answers
401 views

How does authentication work with ASP.NET (using Live ID and\or Windows Authentication)

I'm primarily a .NET desktop app programmer. Coming into the web world has been difficult. I'm trying to convert one of my Silverlight apps into HTML. But I'm having a hard time figuring out the ...
2
votes
1answer
199 views

Node.js app private modules. Where to put them?

The situation would be: I develop 2 projects in my Node.js development environment, P1 and P2. P1 required the development of two simple modules, mod1 and mod2, which are stored in P1/lib. Each one ...
1
vote
4answers
671 views

NodeJS as an avenue towards learning JavaScript [closed]

I'm a backend programmer who works mainly in Python. I'll probably never want to be a full time front end developer, but with the goal of growing my skill set, I would like to become at least passably ...
7
votes
3answers
835 views

Javascript simple code to understand prototype-based OOP basics

I know Javascript for some time, although I am not a heavy user, I know it the first from the time when Netscape was my browser. I pretty much understand the main things, but since JavaScript approach ...
2
votes
0answers
185 views

Tools for finding unused files in web application [closed]

Is there any tools to find unused js, css and image files in web application? Something like Resharper for these files. I've a web application developed by someone else; He has included a lot of js ...
0
votes
1answer
212 views

JavaScript refactoring tool [closed]

I'm on the process of refactoring a large JavaScript application, which has a lot of repeated functions with 2 or 3 different parameters, a lot of global variables used in several modules, etc. Which ...
2
votes
1answer
184 views

What is the most performant CSS property for transitioning an element?

I'm wondering whether there is a performance difference between using different CSS properties to translate an element. Some properties fit different situations differently. You can translate an ...
7
votes
4answers
647 views

Readability of || statements

On HTML5 Boilerplate they use this code for jQuery: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script>window.jQuery || ...
11
votes
4answers
2k views

Does Rhino have a future?

I'm looking to add serious scripting into my Java app and JavaScript would be a great language choice. My concern though is the Rhino project and its future. While Groovy/Jruby etc have seen constant ...
2
votes
2answers
185 views

In javascript and other languages which lack a compiler, is unit testing a good method to ensure correct syntax and variable naming?

I've been working on a medium sized web application that makes very heavy use of javascript. I tend to introduce common errors per 10 lines of code with either an unknown variable name or function ...
4
votes
2answers
2k views

How do you handle measuring Code Coverage in JavaScript

In order to measure Code Coverage for JavaScript unit tests, one needs to instrument the code, run the tests and then perform post-processing. My concern is that, as a result, you are unit testing ...
8
votes
3answers
522 views

What should be tested in Javascript?

At work, we've just started on a heavily Javascript based application (actually using Coffeescript, but still), of which I've been implementing an automated test system using JsTestDriver and fabric. ...
57
votes
19answers
5k views

Should I Bother To Develop for JavaScript Disabled?

The question is in the title "Should I Bother To Develop for JavaScript Disabled?" I feel that my time is better spent developing for the majority?
1
vote
1answer
324 views

Cost of setInterval in Javascript

I've got some code that I want to run when certain HTML elements are added to the page. To do this, I have a "runOnRender" function: runOnRender: function (func, args, interval) { var ...
1
vote
2answers
156 views

Sorting : Useful for more than just viewing data?

Context I'm currently working on a personal project involving functional reactive JavaScript, and I've come up with an odd question. Note that this question is not JavaScript specific, but that is ...
1
vote
4answers
634 views

Is there any HTML editor (WYSIWYG editor) which can do all these tasks? [closed]

I want an HTML editor on the .NET platform which: Support RTL languages (like Arabic and Persian) Be a rich text editor (many formatting tools, not few) Have client-side events Have server-side ...
4
votes
4answers
1k views

Scripting language for filling out web form

I have a job as an intern at a technology company, I was given the unfortunate job of performing some data entry into our web management system. The information entered into the web form is stored in ...
3
votes
1answer
302 views

Javascript and proprietary algorithms

I'll be quite to the point, is there any way to make Javascript a bit more concealed than it usually is or is Javascript always out and open if you look in the source code ? This is about hiding ...
4
votes
2answers
167 views

would like help understanding javascript throttle function

A user on Stack Overflow posted a question related to overriding a native JS function. The question is here and this is the code: function throttle(fn, time) { var handle; var execute = ...
2
votes
1answer
212 views

How do I mashup Google Maps with geolocated photos from one or more social networks? [closed]

I'm working on a proof of concept for a project, and I need to pin random photos to a Google Map. These photos can come from another social network, but need to be non-porn. I've done some research ...
4
votes
2answers
264 views

Fundamental Difference between fn() and new fn() in javascript

In what all aspects, calling a function with and without new keyword differ in javascript? I mean what all things are differing between? testFn() vs new testFn()
12
votes
4answers
361 views

What are the Advantages of a “Combined” Getter/Setter VS Individual Methods?

This is what I call a "combined" getter/setter method (from jQuery): var foo = $("<div>This is my HTML</div>"), myText; myText = foo.text(); // myHTML now equals "This is my HTML" ...
2
votes
1answer
92 views

Pattern for mobile app data synchronisation using HTTP over 3G networks

I have a mobile app built using jquerymobile, PhoneGap and some custom CSS and JavaScript. The data objects are received in JSON and used to display different forms to the user. For example { id: 1, ...

1 2 3 4 5 15