[uf-discuss] Fragment identifiers in hCard links

Ryan King ryan at theryanking.com
Thu Feb 7 14:31:19 PST 2008


On Feb 7, 2008, at 1:19 PM, Rickards, Julian (NDM) wrote:
> Hi:
>
> I have multiple hCards on one page
> (http://www.mndm.gov.on.ca/mndm/mines/lands/pro/contact_e.asp
> <blocked::http://www.mndm.gov.on.ca/mndm/mines/lands/pro/ 
> contact_e.asp>
> ). I created a unique ID for each <div class="vcard"> so that the link
> beside each one
> (http://suda.co.uk/projects/microformats/hcard/get-contact.php?uri=http 
> :
> //www.mndm.gov.on.ca/mndm/mines/lands/pro/contact_e.asp%23devosst
> <blocked::http://suda.co.uk/projects/microformats/hcard/get-contact.php?
> uri=http://www.mndm.gov.on.ca/mndm/mines/lands/pro/contact_e.asp#devosst
>> ) allows the visitor to add specific vcards to their address book. I
> tried this before (several months ago) and it seemed to work but I  
> can't
> get this process to work again. I tried using a # in the URI but the
> link only downloads the first hCard on the page. When I checked my  
> code,
> I noticed that I had used %23 in place of # so I presume that this was
> in response to a suggestion but when I use %23, Suda's server response
> with "No vCards found".

Please make sure your page is at least well-formed:

http://validator.w3.org/check?uri=http%3A//www.mndm.gov.on.ca/mndm/mines/lands/pro/contact_e.asp%23devosst

-ryan


More information about the microformats-discuss mailing list