Forum: JavaScript / DHTML / AJAX Apr 16th, 2008 |
| Replies: 6 Views: 1,682 function modifyObject(o) {
o.value = 'Bullocks to that';
return o;
}
obj = new Object();
alert((modifyObject(obj)).value); |
Forum: JavaScript / DHTML / AJAX Apr 15th, 2008 |
| Replies: 24 Views: 8,044 I can see right off the bat that you are missing the closing curly brace for the function definition in the onload event handler of the body. Plus it is missing quotes. After i fix that i just get... |
Forum: JavaScript / DHTML / AJAX Apr 12th, 2008 |
| Replies: 2 Views: 1,410 Or maybe something along the lines of
Function EnableRadioButtons ( array Elements )
if (button of interest is checked) {
For each Element in Elements
Set Element Enabled... |
Forum: JavaScript / DHTML / AJAX Apr 12th, 2008 |
| Replies: 6 Views: 1,682 Ok...when i change the line this.value = this.dummy(value) to this.value = this.prototype.dummy(value) the code runs. Does anybody have any idea what this is about? isn't the point of the prototype... |
Forum: JavaScript / DHTML / AJAX Apr 12th, 2008 |
| Replies: 6 Views: 1,682 Hello,
I am messing around with javascript. I am trying to create a function to which i can pass a constructor and recieve back an object. Kinda (read exactly) like the new keyword. call it a... |
Forum: JavaScript / DHTML / AJAX Apr 6th, 2008 |
| Replies: 8 Views: 5,626 Sorry mate, my earlier comments would have nothing to do with why your script fails. I was just pointing out general coding style. never rely on semi-colen insertion. as to your problem...
in... |
Forum: JavaScript / DHTML / AJAX Apr 6th, 2008 |
| Replies: 8 Views: 5,626 Also you seem to be relying on the javascript semi-colon insertion "feature". the language does require semi-colons at the end of every statement. It's just that it will supply them for you if you... |