[uf-discuss] Microformats and forms
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
 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'  page and hacked it around
without any great attempt to understand how it worked, so the 78k
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.
More information about the microformats-discuss