Tagged Questions

Javascript is probably the most ubiquitous programming language on the earth. It runs on virtually every OS, and a JS engine is included in virtually every mainstream web browser. Standalone Javascript engines or interpreters are available as well. Windows, for example, includes Javascript in its ...

learn more… | top users | synonyms

1
vote
1answer
27 views

Improving the Controller Module of an MVC - How to?

The code below is for modern browsers only. The current structure uses two module patterns Cin and Cout. As the controller handles all (in)coming and (out)going requests to the user, this made most ...
0
votes
3answers
22 views

JSLint says “unexpected function” doCalc, also please help refactor

See the full calculator with HTML -> https://gist.github.com/1861120 You should be able to drag that html file from github into a browser and start using it. I'm only putting the js below. The ...
3
votes
0answers
39 views

JavaScript Boilerplate - Review comments required

I am in between to create JavaScript Boilerplate (collection of best practices around) for low/medium complex project and will host on GitHub in sometime once finalized it. Have divided the ...
1
vote
1answer
44 views

How to improve this JavaScript code to make it more portable?

The following is a little JavaScript project to display quotes on a web page. Since I want to use it in a number of different web sites, I read up on good practices for making portable JavaScript ...
1
vote
3answers
57 views

Caching a JS selector then only using it once

I have this code: var submit = document.getElementById('submit'); var error = document.getElementById('error'); var url; submit.onclick = function(){ url = document.getElementById('url').value; ...
1
vote
2answers
40 views

Can I adjust this code which displays a table to run faster?

this.displayData = function () { var i; var $thead = $(thead); var $tbody = $(tbody); var numberOfFields = columnDataFields.length; var numberOfRows = data.length; // ...
1
vote
1answer
19 views

Find the object that contains title1-2

I use jQuery and underscore.js, I have title1-2 and I would like to have the action corresponding. this.items = { menuItems: [ { title: 'title1', data: [ { ...
2
votes
2answers
51 views

Page visit counter

The following counts the number of page loads and then does something if < MIN_PAGE_VIEWS. Can anyone give me any pointers to improve both this function and my JavaScript in general? Both in terms ...
0
votes
0answers
22 views

How to randomize a jquery object list [closed]

Possible Duplicate: Randomize a jQuery object list Well this was a simplest code competition at my work. I tried a couple things, they accepted but none of them is i wanted. Beccause both ...
1
vote
3answers
64 views

Randomize a jQuery object list

Well this was a simplest code competition at my work. I tried a couple things, they accepted but none of them is I wanted. Because both are always giving same result. I tried to randomize like this ...
1
vote
1answer
93 views

basic javascript to advanced javascript

I have following code for a content scroller. This has been implemented with basic jquery. Iam trying to convert the same using advanced javascript concepts. Guide me to implement the same. Working ...
1
vote
1answer
38 views

Sorting with combobox

i need some help from you :)...when we select 'info' list in the combobox,automatically the article with type 'info' charateristic showed up, and when we select 'Berita' list in combobox,automatically ...
1
vote
2answers
45 views

getTweets in JavaScript

I'm a JavaScript newbie who was first introduced to JavaScript by jQuery. I'm trying to switch over some of the small things I've written in jQuery to JavaScript as a way of learning. I was wondering ...
2
votes
1answer
65 views

DnD dice roll parser

Some time ago I've written a small parser (about 250 LoC) which is capable of executing the four arithmetic operators +-*/ as well as a dice-roll operator, NdM, which "rolls a dice", DnD style. The ...
1
vote
0answers
35 views

Object Wrapper/Parameter Injection Module for CoffeeScript/JavaScript

I made an object wrapper/parameter injector and I hope it will be useful, I made it for a project I am working on but then decided to try polishing it a bit. The use case is for wrapping objects such ...

1 2 3 4 5 32
15 30 50 per page