|
Menu principal
Google Search
LabsSphère Catégories
|
Blog : HedgerWow
hedgerwang | 2009-11-23T09:07:41+01:00
| 9 lectures
Dear all.I am done with DreamHost and will move to http://hedgerwow.blogspot.com/Maybe I shall get a new domain or keep the existing one.See you soon
hedgerwang | 2009-06-04T09:12:55+02:00
| 20 lectures
I hope HTML5 and Google Gear could do this thing better http://hedgerwow.appspot.com/image-upload-preview/demo.html
hedgerwang | 2009-05-19T23:05:56+02:00
| 6 lectures
http://code.google.com/p/jot-project/wiki/SyntaxAndHowTos , still beta.Hope you’d like it.
hedgerwang | 2009-04-30T22:36:26+02:00
| 4 lectures
One day, I was trying to detect whether an element is an element that has no close tag.So I did this:var tagName = el.tagName.toLowerCase();if( tagName == ‘img’ || tagName == ‘br’ || tagName == ‘input’ || tagName == ‘embed ‘ ){// This is just a example, not all single tags are tested. These tags are :// area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed.// Do something here.}Well, this is not that efficient to write your program.So I switch to use a string map, which is rather simple and John Resig uses the same trick in his HTML Parser.var map = makeMap(’area,base,basefont,br,col,frame,hr,img,input,isindex,lin...
hedgerwang | 2009-04-17T06:57:58+02:00
| 13 lectures
http://www.hedgerwow.com/360/dhtml/base64-image/demo.php
hedgerwang | 2009-02-20T20:35:18+01:00
| 32 lectures
Below are the notes from the newly released YUI version 2.7.0 stylesheet.jsand the notes from its source probably explains why web development is too tricky to deal with.Adapted from tylesheet-debug.js…../*Copyright (c) 2009, Yahoo! Inc. All rights reserved.Code licensed under the BSD License:http://developer.yahoo.net/yui/license.txtversion: 2.7.0*/* Style node must be added to the head element. Safari does not honor stylesapplied to StyleSheet objects on style nodes in the body.* StyleSheet object is created on the style node when the style node is addedto the head element in Firefox 2 (and maybe 3?)* The cssRules collection is replaced after insertRule/deleteRule calls inSafa...
hedgerwang | 2009-02-20T08:07:03+01:00
| 15 lectures
Sometimes you really need to check whether an element is in the document already before calling some DOM methods.See http://www.hedgerwow.com/360/bugs/dom-get-computed-style.php
hedgerwang | 2008-12-06T02:41:55+01:00
| 12 lectures
It’s fun to play with CSS over 10 years.Year 1999: filter:blur();Year 2009: background:url(data:image/png;base64);http://www.hedgerwow.com/360/dhtml/css_fuzzy_shadow/demo.php
hedgerwang | 2008-10-26T22:16:29+01:00
| 3 lectures
Banning the use of IE6. I do believe it’s just the right time to do the right change to make the internet faster, greener, cheaper, which helps to boost the poor economy.
hedgerwang | 2008-10-17T00:53:25+02:00
| 7 lectures
I did not know this trick until I view the HTML source ofa randomly search result from googlehttp://www.hedgerwow.com/360/dhtml/short_doc_type.html
hedgerwang | 2008-09-11T23:57:31+02:00
| 8 lectures
Just like most people, I like to travel whenever I have the opportunity to explore and experience the whole world.I want to know more things, and I want to experience more things as well.I had been to some great places in my past traveling and I always heard some great stories about some other very interesting and attractive destinations from people from varies places which always caught my and gives me more energy to move forward to the next new stop.3 years ago, after working in Yahoo! Taiwan for a while, I had the chance to be transferred to Yahoo! US and started my career as a front-end engineer in Silicon Valley, one of the most amazing places where you can definitely see the abund...
hedgerwang | 2008-08-01T01:06:12+02:00
| 13 lectures
innerHTML rules!http://www.hedgerwow.com/360/dhtml/html-yesjs.html
hedgerwang | 2008-07-25T04:24:49+02:00
| 10 lectures
Hopefully, we’re safe from this kind of problems..http://www.hedgerwow.com/360/bugs/js-spider-monkey-bug.html
hedgerwang | 2008-07-10T01:37:52+02:00
| 63 lectures
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..htmlCheers
hedgerwang | 2008-07-01T21:41:41+02:00
| 11 lectures
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 |