×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    1

    Vcard in xhtml file

    I have make a contact list as a web server for mobile to browse it. I made some link to the vcf files that I got. The web page works fine by computer IE. But failed to open as a vcf file in mobile N73, instead it open as a text file.
    Could anyone tell me how I can configure your web server to provide correct mime type for those files so that mobile could recognize it.

    I put all the vcf file in another folder, and I use this code to link to them
    <li><a href="vcard/jaako_hamle.vcf">Jaakko Halme</a></li>

    The mime type define of mine is as below:
    <head>
    <meta http-equiv="content-type" content="text/x-vcard; charset=iso-8859-1" />
    <meta http-equiv="Cache-control" content="max-age=200" />
    It does not work for mobiles.
    Should I make some file to define the type in the folder where I put the vcf files. Or any other idea? I have been strugling with this problem for very long.
    Thanks.

  2. #2
    Registered User
    Join Date
    Jun 2004
    Location
    HEL
    Posts
    36

    Re: Vcard in xhtml file

    Are you a bot?

    You will probably need to configure your mime types.
    You currently seem to be trying to pass the .vcf as html?
    I am sure it won't have those html tags contained in it.

    You can do it in .htaccess or httpd.conf if you are using Apache.
    Code:
    AddType text/x-vcard .vcf
    Cheers,

    Jamie

    # Any form of employment is strictly prohibited ......

Similar Threads

  1. XHTML : File open Error
    By as_vijay_anand in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-09-19, 06:36
  2. Upload file Problem with XHTML
    By ronny60299 in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2004-12-08, 07:55
  3. A Jtidy and XHTML file question
    By mikeliu1976 in forum Browsing and Mark-ups
    Replies: 3
    Last Post: 2004-10-27, 07:53
  4. A Jtidy and XHTML question
    By mikeliu1976 in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2004-09-30, 05:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×