6
votes
2answers
525 views

typeof usage for undefined variables

what is the best usage for the "typeof" JavaScript function? if (typeof (myvar) == 'undefined') { //or if (typeof (myvar) == undefined) { //or if (typeof myvar == 'undefined') { //or if (typeof ...
3
votes
6answers
2k views

What percent of web sites use JavaScript?

I'm wondering just how pervasive JavaScript is. This article states that 73% of websites they tested rely on JavaScript for important functionality, but it seems to me that the number must be larger. ...
2
votes
2answers
1k views

browser memory increasing constantly with javascript ajax calls

I have a strange behaviour. I am using a rather heavy page (4000 nodes) meant to display a dispatch system for delivery operations. Every 30 sec. I am refreshing with jquery, the list of operations ...
2
votes
1answer
70 views

Collecting usage data On-Demand application (php+javascript)

I need to collect usage information on my on-demand application. This should include things like forms opened, time on form, buttons clicked etc. Data collected should be kept in a database (MongoDB) ...
1
vote
3answers
4k views

Align one of several <li> to the right?

<div id="menu"> <ul><li><a href="#" class="current">SocialSpot</a></li> <li><a href="#">Profile</a></li> <li><a ...
1
vote
3answers
194 views

Safe to create website heavily depending on Javascript and AJAX in 2011?

This is a bit theoretical but I am unable to find out what is the % of users with Javascript disabled on their computer. We are creating massive second-hand car portal with focus on speed and user ...
1
vote
2answers
277 views

Js (+Mootools) - Why my script use over 60% of processor?

On this site - LINK - i need to use 3 banner scrollers (2x vertical + 1x horizontal). I've tried to do it in flash, but then everyone web browsers shut down, or suspended. Now i want to do it in JS (i ...
1
vote
2answers
45 views

Is this usage of for .. in acceptable?

I'd like to do the same thing using several strings. I'd like to do it like this: names = ["NOTE", "REPLICA", "HINT", "VIEW"]; for (name in names) { name = names[name]; //do stuff } Then I ...
0
votes
1answer
23 views

Record API usage in multi client enviornment

So here is a scenario I have a API written JS and exposed using nodejs on a server which I want to offer for use to different client on basis of private key signup. Need to record each GET request ...
0
votes
2answers
475 views

Eclipse Ganymede javascript editor uses huge memory

I am new to here, but I wish someone can help me resolve the problem: version: 3.5 OS: Win 7 64bit JVM 1.6 I am using the javascript editor to write some code using YUI package, and seems it uses ...