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.
2
votes
2answers
38 views
Attaching Events to Document Better Than Attaching Them to Elements?
While bouncing around StackOverflow, I've noticed a number of people attaching events (notably click events) to the document as opposed to the elements themselves.
Example:
Given this:
<button ...
0
votes
0answers
32 views
Is there a consolidated API reference for the Firefox browser.xul? [on hold]
I have used Greasemonkey many times and am stepping up to Firefox extension development. Is there a consolidated reference for the variables, functions, and anything else that is available to ...
-1
votes
7answers
235 views
Single Page Web Application and Requiring JavaScript
I'm under the impression, and I agree with it, that it's bad to create a web application requiring JavaScript to function properly.
What if one were to create a single page application? Is it ...
7
votes
6answers
587 views
Why the most famous sites on the web are not all truly Single Page Applications? [closed]
I'm currently building a single-page-application using AngularJs.
While I'm happy with this way of doing, I've noticed that huge and famous sites, like popular social networks for instance, always ...
-2
votes
0answers
87 views
Why should a native mobile engineer learn Javascript, Lua, and PHP? [closed]
I am a highly skilled iOS and Android engineer. I am very proficient in Objective-C, Java, OOP, iOS, Android, and everything else that concerns native mobile app development.
I just started looking ...
0
votes
5answers
155 views
Why do we write the action to be performed by a function in jQuery inside the parentheses?
Generally whenever we're programming in any Programming language, say C, we would pass the parameters we need to pass to a function using the parentheses next to the name of the function. Whereas in ...
-1
votes
0answers
30 views
Dynamic div loaded only after second click [migrated]
I've got an element in the DOM that's draggable and when it's clicked, I want to grab the x/y coordinates (not shown in this example, but for the future) and the height of tooltip that fades in. The ...
3
votes
2answers
125 views
Unit Testing of JavaScript - Are we testing the logic of the code or the behavior against a browser
[Warning]: I am new to the whole unit testing and have been trying to learn as much as possible.
I am working on a MS CRM 2011 project and I have been trying to introduce unit testing in my company. ...
0
votes
0answers
31 views
Technique to deal with occasionally blocking json api?
I have a web app that occasionally (after some idleness) will block a very simple request for small chunks of data (30~50 kb) up to 20 or so seconds. Assuming I can't refactor or modify the API, is ...
7
votes
2answers
494 views
Can *any* program task be expressed without state?
This is a theoretical question, but after many years of programming in what I now realize is "normal" imperative technique, using C++ mainly, I've discovered this other world of functional ...
-2
votes
0answers
106 views
Drag and drop images in a grid using html and javascript [closed]
Could someone please help me with this technique? I have googled but couldn't find any results.
There are four images in a top grid and four empty spaces in a bottom grid each with size 200x200(WxH).
...
0
votes
1answer
216 views
Interview for job that uses skills you have no experience with? [closed]
I am currently employed as a software developer using C# and C++. However, I want to find a new job for personal reasons and applied for a job ad that listed PHP, CSS, and Javascript as the skills the ...
0
votes
0answers
18 views
How to get proper Strophe.js callback on successful connection [migrated]
I am developing a generic library for communicating xmpp users through BOSH service. I use Strophe.js
I cannot understand why in class BoshCommunicator method onConnect I have a Strophe object, but ...
2
votes
3answers
276 views
why javascript is widely used scripting language in web applications? [duplicate]
I cant find plugins written in other languages other than javascript. There is browser support only for Javascript. Why didn't they use other scripting languages other than Javascript when people ...
-2
votes
1answer
120 views
PHP developer, how to solve javascript related issues in a program with millions of line [closed]
I am expert in PHP. There are some JavaScript related bugs in my
assignment given by my supervisor. I tried to fix them using Firebug.
It is time consuming. Is there any other ways?
Are there any ...