Link to home
Start Free TrialLog in
Avatar of mindfriction12
mindfriction12Flag for Australia

asked on

How to use Microformats to create a "Add to Address book" link

Hi,

I would like to add an "Add to Address book" link on my website, such that when a user clicks the link they are prompted to add the contact info to their Outlook/Mac Mail address book

(please see attached screenshot of example)
addtoaddressbook.gif
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

How exactly can we help with this?  Are you commited to using the Microformat's format (i.e. the hCard I believe) or will that or a vCard format work?  Do you know the specs or format to use for that "style" of data or is that what you need?
What server language or technology are you using (e.g. ASP, PHP, .NET, Perl)?  This would have to be done with server script or code so that is a key to any solution we would help you with.  The server would not only need to get the info to go in the "card" but also format it properly and send it (with the proper headers) to the browser so the user would have the option to download/save.  If you just need some general help to know the header(s) to use then let me know but specifics will depend on the server language/technology.
One note ... I am not familiar with Microformats so if you must use it and need details on the specs of the "data" then I am not sure I will be able to help.  Most likely if you are interested in that format you already have those details though and need just general help on how to get it made and sent to the browser.
Let me know if you have a question or how this helps.
bol
Avatar of mindfriction12

ASKER

hi bol,

first thanks for your reply. Ive familiarized myself with hCard even found a "wizard" to format contact info the hCard microformat (http://microformats.org/code/hcard/creator). BUT i just dont know how to enable such that a user can click the link and it prompts to download a vCard i.e. an Outlook Business Card?
ASKER CERTIFIED SOLUTION
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi bol,

making it download  like the above page is exactly what i would like to do... i just google for and found exactly that, a server side script which forces with a vcard content type and here's a nice little PHP class i think i'll use ;)

http://www.bitfolge.de/phpvcard-en.html