JavaScript

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

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

Code patterns for anonymous function

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

JavaScript

Comments (2)

Permalink

Define JavaScript Constant for Firefox, Internet Explorer and Safari

I tried to do something across browsers like this :

const FOO = ‘bar’;

(function(){

alert( ‘before >> ‘ + FOO  ); //expected -> bar
FOO = ‘Opera 9.5 sucks’;
alert( ‘after >> ‘ +FOO  ); //expected -> bar, but Opera 9.5 will fail me.

})();

It seems that declaring a constant in IE is a lot easier than other browsers for me.


http://www.hedgerwow.com/360/dhtml/js_constant.html

JavaScript
vbscript

Comments (4)

Permalink

FBJS-Like test console

FBJS really did the right simple thing to put JavaScript into sandbox, and here’s my raw prototype:

http://www.hedgerwow.com/360/dhtml/fbjs/demo.php

JavaScript
FBJS
Facebook

Comments (6)

Permalink

oncontentready : An alternative to simulate oncontentready on Internet Explorer

Detecting Element.outerHTML  periodically to see if an Element is fully parsed and avoid Operation Abort Error.
http://www.hedgerwow.com/360/dhtml/ie-dom-oncontentready/doc.php

JavaScript
DOM
IE only

Comments (5)

Permalink

Import Javascript into CSS for IE6

So much love & hate for IE6 :-P

http://www.hedgerwow.com/360/dhtml/ie6-css-hack-import-js.html

JavaScript
CSS Hack
CSS
IE only

Comments (2)

Permalink