Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

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
0
mindfriction12
Asked:
mindfriction12
  • 2
  • 2
1 Solution
 
b0lsc0ttCommented:
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
0
 
mindfriction12Author Commented:
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?
0
 
b0lsc0ttCommented:
Thanks for the response and info.  I have looked into hCard a little more and it will be different than what you saw on the site above for vCard.  It might be easier for you but the user needs to have an addon or extension for their browser to recognize it.  All you do is put the info in a specific format in the html.  The browser will see it and using the addon (or in the case of IE a bookmarklet) can grab that info from the html and export it to your contact list.  At least that is how they describe it happening.
The page above actually uses a method like what I described in my previous comment.  It makes the vCard with server script and sends it to the browser with a special header so the browser knows to download/save it.  The link "Add to Address book" points to that server script page.  It sounds like you aren't interested in this method but I wanted to clarify it since you do like the effect on the other site and they use vCard.  You won't get the exact same process with hCard but it might be easier for you (if the user supports it) and the result would be the same.
Let me know how this helps or if you have a question.
bol
0
 
mindfriction12Author Commented:
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
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now