How to display some HTMLs only when JavaScript is enabled?

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

JavaScript
XHTML

Comments (7)

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 (8)

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

Long Word breaker

for really long words in HTML, there’s a way to break it.
http://www.hedgerwow.com/360/dhtml/css-word-break.html

JavaScript
CSS
layout
FancyStyle

Comments (2)

Permalink

Finally, the alternative fix for IE6’s memory leak is available

Some languages suggest that using try….finally block statement may help to prevent the memory leak, and this rule apply to JScript in IE, too.

http://www.hedgerwow.com/360/dhtml/ie6_memory_leak_fix/

JavaScript
IE only
memory leak

Comments (0)

Permalink

JavaScript, the unnecessary part : About Label

My answer which explain why people like to use JavaScript label for inline script unconsciously.
http://www.hedgerwow.com/360/dhtml/js_label/

JavaScript

Comments (1)

Permalink

Simple “Class” Instantiation, the alternative solution.

My two cents for this little JavaScript trick.
http://www.hedgerwow.com/360/dhtml/js-simple-instantiation.html

JavaScript
ObjectOriented

Comments (0)

Permalink

Slides and example codes for my presensation in D2

Just upload the materials of the topic “Enterprise Ajax in PHP” which I presented in the second developer and designer summit in Beijing, China.

Feel free to download and share this with your friends.

AJAX or Remote Scription
Slides

Comments (12)

Permalink

Code patterns for anonymous function

A void anonymous function :-)
http://www.hedgerwow.com/360/dhtml/js-anonymous-function-patterns.html

JavaScript

Comments (2)

Permalink