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
Keep It Simple, Stupid
{ Category Archives }
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
for really long words in HTML, there’s a way to break it.
http://www.hedgerwow.com/360/dhtml/css-word-break.html
My answer which explain why people like to use JavaScript label for inline script unconsciously.
http://www.hedgerwow.com/360/dhtml/js_label/
My two cents for this little JavaScript trick.
http://www.hedgerwow.com/360/dhtml/js-simple-instantiation.html
A void anonymous function ![]()
http://www.hedgerwow.com/360/dhtml/js-anonymous-function-patterns.html
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.
FBJS really did the right simple thing to put JavaScript into sandbox, and here’s my raw prototype:
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
So much love & hate for IE6
http://www.hedgerwow.com/360/dhtml/ie6-css-hack-import-js.html