|
get the global object in any environment Hi group, Since JS is everywhere (client, server, desktop...), it makes sense to think how to write code that could run in environments other than the one originally in mind. Perhaps it's not a good idea to use `window` when the code could possibly run in environment that has no idea what `window` is. so this... 28 Feb 2010 22:16
How do I get keys from an associative array? Hi, Given an associative array, how do I get an array of the keys of that associative array? Thanks, - Dave ... 25 Feb 2010 19:22
FAQ Topic - Why do I get permission denied when accessing a frame/window? (2010-02-21) ----------------------------------------------------------------------- FAQ Topic - Why do I get permission denied when accessing a frame/window? ----------------------------------------------------------------------- In the normal browser security model, it is impossible for a script from one domain to access t... 25 Feb 2010 19:22
Some Early Topics Dear Group, I am bit new in this group, so with Java Script. I was reading some early tutorials on it. My questions are: (i) Suppose I write <script type="text/javascript"> x="My Name" document.write("<h1>x</h1>); </script> would it show the result i.e., the string value of x in header 1? If not, ho... 22 Feb 2010 16:24
Thq Quiz On 2/20/10 4:09 AM, Garrett Smith wrote: [...] Answer to my "response question" is explained by Ecma-262, r3 s 10.1.8 "Arguments Object": | A property is created with name length and property attributes { | DontEnum }. The initial value of this property is the number of actual | parameter values ... 25 Feb 2010 18:13
FAQ Topic - How do I close a window and why does it not work on the first one? (2010-02-20) ----------------------------------------------------------------------- FAQ Topic - How do I close a window and why does it not work on the first one? ----------------------------------------------------------------------- If a window was opened by javascript, then it can be closed without confirmation by using ... 19 Feb 2010 19:58
My Library TaskSpeed tests updated--MultipleIE has the IE6 problem,not My Library Scott Sauyet wrote: [1] http://tredosoft.com/Multiple_IE I was hesitant to dump more IE's on this box, but went ahead and did it. I should have trusted my initial instincts. I had noted that the only common denominator was the setText method and sure as hell that was the one throwing the exception. It wa... 19 Feb 2010 17:43
Zakas' new Quiz Yet another JS Quiz: http://www.nczonline.net/blog/2010/02/16/my-javascript-quiz/ I have a couple of comments on the explanations provided: http://www.nczonline.net/blog/2010/02/18/my-javascript-quiz-answers/ Example #1: I believe the explanation is that the postfix is matched, as in: TOKENS: num1, ++, +, n... 23 Feb 2010 01:21
Change event dinamically Hi everyone, I want to change the event onclick of an img element. I'm trying in many ways such: myElement.onclick = myFunction (param1,param2) myElement.onclick = function{myFunction (param1,param2)} but it doesn't work Does anybody knows the corect syntax? Bye. Luciano ... 19 Feb 2010 18:51
Number.prototype.math benchmark Hi, I've done a small benchmark in order to see how do the different implementations handle the extra work required by this approach: http://jorgechamorro.com/cljs/096/ Browser Math math (Mhz) Proto Math (MHz) Prop. Opera 10.5 20.70 0.64 32.3x FF3.6 23.46 ... 19 Feb 2010 10:57 |