First  |  Prev |  Next  |  Last
Pages: 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
extend prototype chain?
In my html page I get from a PHP server a big JSON-encoded string. In javascript I decode this string and I get a object with properties foundPersons and errorMsg. In my javascript code I have a Person prototype with handy methods like fullName()... Then I traverse the JSONDecodedObject.foundPersons and I retr... 2 Feb 2010 14:52
get or post?
Is there a way to know if the current page is a result of a get or post? ... 2 Feb 2010 14:54
triplet question.
I remember reading once in the spec about the meaning of triplets (surrounded by parentheses) such as "(normal, empty, empty)" but which has since been forgotten ... Trouble is, I've been scouring the spec but can't t seem to find that defintion: would someone be so ind as to quote relevant definition from t... 25 Jan 2010 05:02
Singleton vs Singleton
From looking at the code below: -------------------------------------------------- var Singleton1 = (function(){ //... return { foo : function(){ //... }, bar : function(){ //... } }; })(); var Singleton2 = new function(){ //... ... 27 Jan 2010 13:44
Also on automatic semi-colon insertion ...
I think I've been able to get my head around ASI in JS, except for the Restricted �throw" statement produ- ction. As I understand it, if a line termin- ator appears immediately after the having a "throw" keyword, the effect is that of having an "implied" (perhaps a better term than an "auto- matically inse... 2 Feb 2010 14:52
How can I get visible area on Android browser?
I'm trying to get current visible area size on Android browser. But there seems to be no way to get it. Here, I mean "current visible area" like this: - As web page zooms in, "current visible area" becomes smaller. - As web page zooms out, "current visible area" becomes wider. I can get the size by "window... 24 Jan 2010 03:32
try catch catches when
If I have this function fun() { // evaluate something return something; } try { var foo = fun(); } catch (err) { alert("fun error"); } and there's an error in the function 'fun' does the try/catch catch it? Andrew Poulos ... 23 Jan 2010 18:48
Passing primitives by reference, part 2
Well, it's the weekend again, time for more experimental fun with js :) Last week I was trying to pass primitives by reference (or, more precisely, passing mutable object wrappers representing primitives) ... anyway the point was to be able to do stuff like this (pseudocode): func ModifyValue(a,b) { incre... 24 Jan 2010 02:28
jQuery vs. My Library
On Jan 22, 11:34 am, David Mark <dmark.cins...(a)gmail.com> wrote: The various globals (e.g. E, Q, D, W) are actually constructors, which allows for leveraging all of the wonderful OO features included in all ES implementations (see F and I for examples). With so many globals, I would suggest giving them f... 9 Mar 2010 08:54
Could this be done in javascript?
Hello everybody. Until now I've only needed some php for my simple web pages, but now I think I may need to learn javascript. Before that, I would like to know if the following behaviour can be obtained by means of some javascript code Simplifying... I have a web page (say mymain.php) in php/html with a html f... 22 Jan 2010 17:26
First  |  Prev |  Next  |  Last
Pages: 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110