Posts tagged hacks

Pass (isolate) a value, not variable, in Javascript

I found an article detailing some “oddities” in Javascript today. The callback argument in the replace method was new for me, though I feel that there must be some eccentric behavior that pushed this “secret” into the shadows. Number 7 proved the most beneficial for me. My attempts to pass the current value of a [...]

CSS !important supersedes DHTML changes

Finally, with the help of Firebug and lots of patience, I discovered why my jQuery animation wasn’t working (on a personal project of mine, more on that later…)  Essentially I intended to animate a div from 100px to a calculated height ($(window).document.height()-$(this).height()) but for the life of me, I could not get it to work.  [...]