Welcome to WebmasterWorld Guest from 23.21.38.201

Forum Moderators: phranque

Making a vCard available

but for some reason, not working

   
3:21 am on Jan 13, 2009 (gmt 0)

10+ Year Member



I have a client who is a lawfirm who wants to make their attorneys' vCard available on the profile page for each lawyer.

I created the vCards by exporting from Outlook to a .vcf file, put them in a folder called vCards, provided simple links to the vcards.

my IE browser works fine - for some reason in FF it simply displays the txt of the card on page, and in the test environment, the client reports they are getting an error message even attempting to open same.

Is there something I am missing here? Is there more to it than simply linking to the vcf file? I have googled pretty deeply and interestingly, there's not much out there about embedding a vCard on a page.

If anyone has a link to some detailed how-to, I would appreciate any pointing me in the right direction.

Thanks

12:49 pm on Jan 13, 2009 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



have you checked the content type header?
it should be sending text/x-vcard.
maybe IE is ok with the file extension alone and tries to put it into outlook on that basis.
check how your file types are handled in ff and if .vcf isn't specified you should get a dialog that will allow you to specify the application to handle that type.
2:18 pm on Jan 13, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



phranque is right. Found this by Googling: in Apache, you should add

AddType text/x-vcard .vcf

to your vCards directory's .htaccess file

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month