[uf-discuss] Microformats and forms

Rob Crowther robertc at gmail.com
Fri Jan 26 11:37:34 PST 2007

On 25/01/07, Jonathan C Williams <jonathan.williams at nyu.edu> wrote:
> The Live Clipboard (http://www.liveclipboard.org/) stuff seems to be
> a step in the direction of letting forms consume microformats. I
> haven't looked at it recently.
I've spent a couple of hours this afternoon getting the contact page
on the website I'm working on to accept hCards through LiveClipboard:


It seems to work OK, I can copy an hCard from the LiveClipboard demo
[1] and use it to populate the form in IE.  I can also pick up hCards
with Operator and use them to populate the form, though Operator seems
to lose the email address.  Trying to paste invalid or empty data in
seems to kill it until page reload, so I probably need to add some
checking in somewhere.

I took the code from the 'Tech Preview' [2] page and hacked it around
without any great attempt to understand how it worked, so the 78k
javascript file I ended up with through the 'copy and paste'
development technique could be greatly reduced (I'm only really
interested in the paste functionality, after all).  Also, it's leaving
a lot of unnecessary crud in the page at the minute because I couldn't
work out how to do without the contactHcard1 div, so I took the easy
way out and hid it.


[1] http://spaces.live.com/editorial/rayozzie/demo/liveclip/liveclipsample/clipboardexample.html
[2] http://spaces.live.com/editorial/rayozzie/demo/liveclip/liveclipsample/techPreview.html

More information about the microformats-discuss mailing list