I guess the variable puzzleHolder isn't available within the scope of the function checkElement. You're errorconsole should throw an error like 'undefined variable: puzzleHolder'.
Yes, add the input boxes and call the function calculate_quarter, for the four quarters you need.
1st argument is an array with the names of the month input boxes for that quarter.
2nd argument is...
The outer (closure) function is self-executing and returning the inner the inner function. The global isPrime becomes the inner isPrime function.
The scope of the outer function is preserved and can...
That console is a little confusing. The referenced object is an instance of the isPrime constructor. A contructor could be seen as a template to create objects.
Since function declarations are executed before other statements, the conclusion from above example doesn't seem right to me.
The javascript interpreter runs it like:
When a function is invoked by an event 'this' refers to the invoking element, or to the 'window' object depending on the way the function is referred to by the event....
Seems IE is testing the arguments for your window.doScroll method, as if they were given to it's own document.documentElement.doScroll method.
Giving you function a different name should fix your...
Since colorArray.length gives 3, and the last index of the array is 2 since it starts at 0, i <= colorArray.length should be i < colorArray.length instead.
And there is a bracket to many in the if...
// first create a Person constructor, which takes two arguments and sets them as properties of the created instance
function Person(name, age){
this.name = name;
...
All you need to do is call DragHandler.attach with the element as an argument, when the DOM is done loading.
There's no need to attach events to the element yourself.
It's because IE versions lower than 9 convert bgColor="red" to bgColor="#ff0000", so you should test for that aswell. Or add descriptive classes to your cells so you can tell them apart in your...
You're browsers are fine, if you scroll down a bit IE doesn't zoom in on the thumbnails anymore. You should try getting document.documentElement.scrollTop instead.