July 2008

How to display some HTMLs only when JavaScript is enabled?

innerHTML rules!
http://www.hedgerwow.com/360/dhtml/html-yesjs.html

JavaScript
XHTML

Comments (10)

Permalink

A JavaScript Bug of SpiderMonkey on Firefox

Hopefully, we’re safe from this kind of problems..
http://www.hedgerwow.com/360/bugs/js-spider-monkey-bug.html

JavaScript
Firefox Only

Comments (2)

Permalink

In case you need to implement min-width for IE6

I’ve posted a example about make min-width work on IE6 before, and this post is about giving you a bare bone template with min-width support so that you can simply grab the code for your layout easily.

Though the CSS / HTML seems tricky for some developers, I still think this a far better solution than the extremely expensive expression(); solution.
the template is available here http://www.hedgerwow.com/360/bugs/css-only-min_width_ie6_2..html

Update:this one works even better for me.
http://www.hedgerwow.com/360/dhtml/css-min-width-final.html

Cheers

CSS Hack
CSS
layout

Comments (9)

Permalink

Stable Array.sort

I’d think that stable sorting does matter for most sortable UI, and it’s better to let JS to do it natively since we use JS a lot to make UI sortable.
http://www.hedgerwow.com/360/dhtml/js_array_stable_sort.html

JavaScript

Comments (0)

Permalink