Search Results

Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: AaronASterling ; Forum: JavaScript / DHTML / AJAX and child forums
Forum: JavaScript / DHTML / AJAX Apr 16th, 2008
Replies: 6
Views: 1,682
Posted By AaronASterling
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
Posted By AaronASterling
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
Posted By AaronASterling
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
Posted By AaronASterling
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
Posted By AaronASterling
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
Posted By AaronASterling
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
Posted By AaronASterling
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...
Showing results 1 to 7 of 7

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC