JavaScript

Password Value as Text

Posted on November 17, 2009. Filed under: JavaScript | Tags: , , |

I was working on a design the other day that only had text fields with no labels, the label was in the text field and would disappear when clicked on

Read Full Post | Make a Comment ( None so far )

Convert HTML entities from XML in JavaScript

Posted on April 15, 2009. Filed under: JavaScript | Tags: , , , , |

Sometimes you get passed a string from XML and it can contain HTML entities like the following
&
<
>
"
©
®
«
»
'
If you write the string with JavaScript then you get something like didn't instead of didn’t
I’ve searched around for a function that could handle this but could not find one, so I wrote my own. I thought I’d share [...]

Read Full Post | Make a Comment ( 1 so far )

Convert Microsoft Word Characters

Posted on March 31, 2009. Filed under: JavaScript, Programming | Tags: |

I’ve written a JavaScript function a while ago that converts Microsoft Word Characters (crap) to valid HTML characters. Till today I didn’t realize how valuable the function is, it could probably do with some expansion on what it converts so any help to improve is much appreciated.

Read Full Post | Make a Comment ( 1 so far )

Liked it here?
Why not try sites on the blogroll...