Also you might find it easier to validate with some RegEx, then you can do it in one step and only show the user one alert, instead of one for each invalid...
While I'm not sure what the dojo implementation looks like, here's a quick one I hacked together (this type of thing is part of something called Aspect Oriented Programming, hence the name of the...
SELECT DISTINCT d.doctitle, r.itemid
FROM (file_doctransact dt INNER JOIN file_doc d ON dt.docID = d.docID) LEFT OUTER JOIN file_readdata r ON dt.docID = r.docID
WHERE dt.transactID =...
In all browsers, bar Opera, as far I as I am aware, JavaScript runs on the UI thread. This means that changes to the DOM will only take effect when the script stops executing. In Opera, DOM changes...
That won't work. In the first instance you are creating a DOM Element and applying some attributes. In the second instance you are creating a JavaScript Object instance. The two are far from...
Okay, which is what I was getting at in my previous post. So we're talking signed ints, let's say the common 32-bit, which can store numbers in the range from –2,147,483,648 to 2,147,483,647. Now...
Fang, can you tell me which browsers don't support img.onload? I know IE6, IE7, Opera 9, Safari 3 Beta and FF2 (XP and Vista) definitely do. Is it only older browsers that don't or are there main...
You could perhaps interpret the problem as being the sum of all integers that can be represented by a 8-bit, 16-bit or 32-bit int (signed or unsigned).
The sum of all integer numbers that are not the number? All? I'm no mathematician, but I think it can be shown that the answer would be the negative of the number (if you selected 5 the answer would...
Don't change the class name on mouse over, simply add to it. So you might have CSS classes .oddRow, .evenRow & .hiliteRow and when you mouse over you add hiliteRow to the class name (so the row has 2...