Davs Rants and Random Thoughts

November 11, 2006

YAHOO.Tools v0.8

Filed under: yui, ajax, javascript, code, Yahoo! — Dav Glass @ 6:01 pm

Hey all –

I have added 6 new functions to the Tools package. They are:

  • getHeight
    (This normalizes getting an elements height in Internet Explorer.. no more “auto”!!!)
  • PixelToEm
    (Convert a pixel size to an EM size for both IE and normal browsers)
  • PixelToEmStyle
    (Same as above, but output a CSS style rule. i.e. width: 25.5em; *width: 25.5em;)
  • base64Encode
    (As it sounds)
  • base64Decode
    (As it sounds)
  • getQueryString
    (Get the current query string, it also handles &test[]=1&that[one]=3 parameters)

Enjoy 8-)

Add to:
| Digg it | Slashdot | Y! MyWeb

Leave a Reply

© 2008 Dav Glass - All content is mine, except comments. Comments are the property of the poster. I speak for no person or company.
Can you tell me what this says? 01000100 01100001 01110110 01101001 01100100 00100000 01000111 01101100 01100001 01110011 01110011