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

1
vote
1answer
25 views

Best resource for developing JavaScript curriculum? [closed]

At the risk of being downvoted, I really need the community's input - I am helping put together a post-secondary quality curriculum (vocational school, not university) around open-source languages, ...
3
votes
2answers
72 views

Responsive Web Design vs. User-Agent Sniffing

The CSS3 media query feature has led to many interesting possibilities in terms of developing websites which adjust to many different screen sizes and devices. However, in practice, I'm starting to ...
0
votes
0answers
33 views

document directory path in javascript file in iOS

I am working on a project using MetaIO SDK (AREL). It works fine with all the files in the package (ipa), but I'm trying to download an animation automatically using a web service. It will be ...
3
votes
1answer
70 views

Building a Graph Editor - How to create a data driven graph

I am developing a graph-editor that uses drag and drop to build hierarchical graphs (containing nodes and links). Each node in the graph should be linked to a table in our database (SQL Server). I did ...
-1
votes
0answers
16 views

why cant you access first div element of body like document.body.div[0] in html/javascript [migrated]

i can do document.body.childNodes[1] but why not this. How does it work for document then. Sorry if i am missing something. Following this logic, body should have been only accessible through ...
-4
votes
1answer
191 views

Beginner webdeveloper. How to make development right? [closed]

I work for a company that has developed its own PHP framework. From my perspective, it seems quite hard and tiresome to develop and maintain websites in this framework. Let me give an example. It is ...
0
votes
1answer
33 views

Base64 decode and SH1 decryption of Sec-WebSocket-Accept value example from Websocket RFC

I am planning to implement the Websocket protocol and currently learning how handshake headers must be structured. According to this link http://datatracker.ietf.org/doc/rfc6455/?include_text=1 ...
-3
votes
0answers
72 views

Is it Wise to disconnect the ui layer from the backend in mobile web apps? [closed]

What's the future when it comes to mobile web development? I mean, traditionally, in the java world, we make use of Java EE technologies such as Spring, Hibernate and some MVC framework like Spring ...
0
votes
1answer
50 views

Evaluating JSON from popular auto-suggests

I was evaluating the various ways in which the big guys implement auto suggest. These are my observations.(Search string used was "ab") Questions towards the end. Yahoo tries something like this, ...
1
vote
1answer
105 views

Checklist for coding MVVM web application [duplicate]

We are a small team working on a web application using MVVM design pattern using technologies like .NET, Knockout and HTML. I am trying to come up with a code review checklist for this, so that my ...
4
votes
2answers
109 views

How to modularize and package a client-side Javascript library today?

I've been catching up with the modern client-side JS ecosystem and reading up on CommonJS and AMD (incl. associated tools - browserify, requirejs, onejs, jam, dozens of others). If I'm writing a ...
1
vote
0answers
106 views

Which lower-level language is most similar to javascript? [closed]

When I say lower-level language, I'm talking about something that compiles to machine code as opposed to being interpreted or compiling to CIL/etc. Is there a lower-level language that bears ...
2
votes
1answer
82 views

Client side authentication through signatures instead of passwords

I want to save some user-generated data with some signature of the user that generated it (let's say that the user has to fill some forms with some data and I want him to sign the written data). The ...
8
votes
1answer
163 views

Why is the use of constructors discouraged when creating prototypes?

Quick background: In JavaScript, the constructor function for each object type has a prototype property. The prototype refers to an object that each constructed object uses as the next step up in its ...
-3
votes
0answers
44 views

Need suggestions for web page with blueprint-based room content display for a college campus [closed]

StackOverflow! Rather than an specific error or issue, I am actually looking to draw on your collective knowledge for suggestions for a solution I need to implement for our campus IT website. I have ...
1
vote
2answers
71 views

Javascript and web application data

I am pretty new to Web Application programming and so to OOP Javascript and the new Client-Server interactions. I am encountering some trouble wondering about how much AJAX I should use or how much ...
10
votes
3answers
289 views

Object Oriented Programming in JavaScript. Is there life without it? [duplicate]

At our company we have pretty large body of PrototypeJS based JavaScript code, which we are porting to jQuery for several reasons (not really important here). I'm trying to set up coding guidelines to ...
1
vote
1answer
180 views

How much inconsistency arises from Javascript's high flexibility?

I'll admit it, I haven't yet mastered the language, but my experience with it tells me that Javascript is a highly flexible language, allowing prototypal inheritance, dynamic typing, functions as ...
0
votes
0answers
48 views

Document existing Visual Studio Project [duplicate]

I am a small business owner and my sole developer quit. Cold. I am not a coder. He developed an existing application that works .net, c#, javascript, sql, visual studio based, 250,000 lines of code. ...
2
votes
1answer
53 views

Websocket protocol server development

I am interested in building a custom Websocket server for college project. I have a good familiarity about HTTP 1.1 and knows quite well of how it works. I am asking this question assuming that ...
1
vote
2answers
163 views

Single codebase for client and server with Node.js [closed]

There are a few claimed benefits to Node.js that I typically hear. Some (many?) I agree with. There is one that I completely do not understand, which is the one language argument: "You can now use one ...
0
votes
0answers
70 views

How should I structure modules in an Angular.js application?

I am fairly new to Angular.js, and one that confuses me is how to best use modules in an application. It seems to me that modules can contain any of the other common constructs in AngularJS ...
-1
votes
2answers
222 views

How to run C++ code in browser using asm.js?

An asm.js application is very fast (near native C++ speed): http://kripken.github.io/mloc_emscripten_talk/micro4b.png But how is it possible to write one in C++, convert it to LLVM code, then do some ...
-1
votes
1answer
40 views

client side code set up and why use apache web server [closed]

Trying to get a better understanding of the current project set up and want to know if there is an easier set up. The project is set up a 2 different components, one project contains the client side ...
0
votes
1answer
99 views

Pros and cons of the following Parsing methods?

I'm thinking of making a Python-JavaScript converter/compile. I've been wondering about the pros and cons of the following methods to parse the Pythonic code, into JavaScript equivalent. Working ...
-2
votes
1answer
41 views

Make script that allow server and client to communicate [closed]

I have apache installed, and I would like (using php/and or javascript, html) to do the following but I do not know how. To send my client to the server a value x The server to increase x by one ...
4
votes
2answers
166 views

Why would I use Angular?

From the basic Angular tutorial, it seems like all it does is fetch some JSON from an API and display it. Also, there's its double binding magic. But why would I use it instead of a backend solution ...
1
vote
1answer
133 views

“Generators are function derivatives”

I am reading this article on a new feature of ECMAscript 6, generators, that are landing in the V8 JavaScript interpreter. Not too far from the top, the author suggests an analogy: generators are ...
-4
votes
1answer
79 views

Making <li class=“”> active and inactive [closed]

I have a simple html page in which i'm including header.php, footer.php files. In this page there is a sidebar which is styled by css. I want to take this sidebar out and include it through php ...
1
vote
1answer
47 views

create function of object prototype

I am reading "Javascript : The good Parts" to improve my Javascript bases and knowledge. I was reading stuff about prototype and I encountered in this function : var stooge = { ... } if(typeof ...
-1
votes
1answer
40 views

ASP.net extended with client side operations [closed]

What is the best way to "extend" my ASP skill set to include more client side orientated actions. I am developing the growing need to do things "faster" , without post backs... I am talking about UI ...
-1
votes
0answers
7 views

java script date popup is not working in firfox [migrated]

The following is the function for date selection. The code is working in IE but it is not working in Firefox. The problem coming at selecting a day.iam not able to select a day in Firefox. function ...
2
votes
1answer
180 views

Javascript Architectural Model

Are there any obvious flaws to this OO architectural model which I intend to implement using javascript? It is similar to the MVP model but instead the role of the model is broken down into three ...
-2
votes
1answer
134 views

Chess GUI in Javascript [closed]

Hi I am currently working on a chess application. I have written these applications before, but never added GUI to them. This time I upped the level a bit, I am trying to make a Multiplayer Web ...
2
votes
5answers
343 views

What is the best way to load balance javascript applications?

I write a lot of javascript applications and in many different circumstances the browser will become unresponsive or give a "slow script" error. Even when following best practices, initializing large ...
5
votes
1answer
138 views

Is there a de facto standard documentor for Javascript?

I'm trying to document my code using JSDOC3, that has a similar syntax to PHPDocumentator / Apigen. But is there a de-facto standard for Javascript inline documentation? I think Google Closure is the ...
-4
votes
0answers
120 views

Project suggestions for a beginner [closed]

I'm a rather beginner in Python and looking for project ideas. I don't want to reinvent the wheel and I just can't think of any ideas for a project which hasn't been implemented before. Also I want to ...
-1
votes
0answers
8 views

how to add new product ( hidden list ) forr smartcart jquery pluguin? [migrated]

i am using smartcart 2 jquery pluguin on my application to handle session cart. the user can create new product and add it to his cart. i use ajax call to save the product in my list .and then i need ...
-3
votes
0answers
70 views

How does tinysong download songs from their servers and then make it readily available? [closed]

I was searching music downloaders and I came to tinysong.com I generally use grooveshark for listening music. I was wondering how tinymusic downloads music from their (tinymusic) server? Beacuse when ...
1
vote
1answer
129 views

Should I not try to emulate private class data in javascript?

So I have been building this ORM style library for AngularJS (JavaScript) and since I come from a C++/PHP/C# background, I always try to make sure that private things stay private. While this can be ...
0
votes
0answers
28 views

Masking effect using HTML5 canvas [migrated]

I'm just a junior developer and I am wrestling with a bug and not sure how to fix. If you see this example: http://jsfiddle.net/gfZ5C/ When user mouseout from the image, a large circle is left at ...
0
votes
0answers
63 views

Refactoring this javascript code [closed]

I have this javascript code and im not happy the way it is written.. function notesViewModel() { _this.colName = "CreatedDate"; _this.sortOrder = "desc"; _this.notes = ...
0
votes
0answers
60 views

data handling with javascript

Python has a very neat package called pandas which allows for quick data transformation; tables, aggregation, that sort of thing. A lot of these types of functionality can also be found in the python ...
1
vote
2answers
161 views

Making a flowchart showing step by step processes with HTML5 or Javascript or CSS3? [closed]

I want to make the flowchart like in this image I have: I am guessing I can achieve it by using HTML5 Canvas but I am complete beginner when it comes to HTML5 & I have some time constraints. ...
-1
votes
0answers
97 views

Can you give me any book recommendations for knockout and backbone JavaScript libraries? [closed]

Can anyone recommend a great intro book for knockout.js and also backbone.js? And then also an advanced book for both? Thanks! If this isn't the place to ask this, please point me in the right ...
0
votes
2answers
191 views

Multi-Threaded JavaScript?

I know, I know--it isn't possible presently BUT my question is this: Would it be possible to write a browser plug in for the major browsers that enables true, multi-threaded JavaScript? It just ...
2
votes
2answers
171 views

JavaScript Frameworks for traditionally structured web applications

I am looking for a way to control large amounts of JavaScript code in a ASP.Net MVC web application. I have been looking at Ember.js and whilst it's pretty compelling it takes control of the routing ...
1
vote
1answer
114 views

Documenting Function That Takes Random Parameters?

What's the best approach to creating documentation (displaying the function prototype if you will) for functions that take a variety of different forms in terms of parameters. Let's say there are 10 ...
0
votes
2answers
136 views

Repetitive Drawing in Javascript & Canvas

Creating an HTML5 page using canvas and javascript to draw a set number of musical staves on the page, spaced a pre-determined amount in between. What I have is re-drawn on top of the canvas 10 ...
0
votes
0answers
28 views

What tools can I use to create static demonstration documentation?

As we embark on a project of javascript UI widgets, we need to create demonstration documentation on these widgets. However, we can't create said documentation using a CMS. These should be static ...

1 2 3 4 5 16