In other news, the two dashboard widgets I built last year and never got to release are up on the new AOL Greenhouse. When I get some more time, I might build some more. They’re not really polished (remember, I’m not a designer), but they work. If someone wants to give me a swanky design for either, I’d appreciate it. Cindy?
Category: dashboard
-
Safari, Javascript and Large Numbers
Let’s say you’re playing with a dashboard widget that deals with some large numbers you might want to compare. For some reason, you’re not getting the result that you thought you would. For some reason really large numbers are breaking your if statements. Well, if you wanted them not to, you might want to wrap those numbers in Number() in the comparison. That seemed to work for me (yes, I really hope you’ll get to see this widget soon – it’s fun).\
UPDATE: Apparently, I’m on crack because the above bug I mentioned apparently doesn’t exist. I was trying to prove it with some test cases, and I can’t recreate it, even with REALLY large numbers expressed as strings. So… ummm… sorry.