|
List Info
Thread: Fragment identifiers in hCard links
|
|
| Fragment identifiers in hCard links |

|
2008-02-07 15:19:45 |
Hi:
I have multiple hCards on one page
(http://www.mndm.gov.on.ca/mndm/mines/lands/pro/conta
ct_e.asp
<blocked::http://www.mndm.gov.on.ca/mndm/mines/lands/pro/c
ontact_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/p
ro/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".
Any help?
Jules
------------------------------
Julian Rickards
Geoscience Data Conversion Technician
Provincial Recording Office
Willet Green Miller Building, Level A3
933 Ramsey Lake Road
Sudbury, ON P3E 6B5
E-mail: julian.rickards ontario.ca <mailto:julian.rickards ontario.ca>
Phone: (705) 670-5861, Fax: (705) 670-5681
Toll-free: 1-888-415-9845 ext. 5861
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Fragment identifiers in hCard links |
  United States |
2008-02-07 16:31:19 |
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/conta
ct_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/hc
ard/get-contact.php?uri=http
> :
>
//www.mndm.gov.on.ca/mndm/mines/lands/pro/contact_e.asp%23de
vosst
> <blocked::http://suda.co.uk/projects/microformats/hcard/get-
contact.php?
> uri=http://www.mndm.gov.on.ca/mndm/mines/lands/p
ro/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
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| RE: Fragment identifiers in hCard links |

|
2008-02-11 08:33:36 |
> -----Original Message-----
> 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/conta
ct_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/hca
rd/get-contact.php?uri=htt
> > p
> > :
> >
//www.mndm.gov.on.ca/mndm/mines/lands/pro/contact_e.asp%23de
vosst
> >
> <blocked::
http://suda.co.uk/projects/microformats/hcard/get-co
> ntact.php?
> >
> uri=http://www.mndm.gov.on.ca/mndm/mines/lands/pro
/contact_e.asp#devos
> > st
> >> ) 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.mnd
m.gov.on.ca/
mndm/mines/lands/pro/contact_e.asp%23devosst
Ryan:
I fixed the page and now it is valid. However, that doesn't
change the
result. Having done a bit of testing, it appears that in the
URI link
where I use a fragment identifier (which would normally use
the # as in
index.html#fragment), I have tried both # and %23 (where
that comes
from, I don't know) but neither work properly. When I use #,
only the
first contact is downloaded no matter which contact link I
click.
However, when I use %23 in the URI, the only response I get
is "No
vCards found" which is obviously not true because the
hCard code meets
the specs.
Maybe Brian Suda has changed the code on his server because
a test page
of mine that used to work doesn't work any longer.
Does anyone have any ideas as to how to put multiple hCards
on one page
and have individual links download individual vCards to the
client's
address book?
Jules
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Fragment identifiers in hCard links |
  United States |
2008-02-11 10:21:25 |
On Feb 11, 2008, at 7:33 AM, Rickards, Julian (NDM) wrote:
> I fixed the page and now it is valid. However, that
doesn't change the
> result. Having done a bit of testing, it appears that
in the URI link
> where I use a fragment identifier (which would normally
use the # as
> in
> index.html#fragment), I have tried both # and %23
(where that comes
> from, I don't know) but neither work properly.
"%23" is the URL encoding of the "#"
character. This character needs
to be encoded to be sent to the server because a plain
"#" begins a
fragment identifier, which is handled by the browser after
the server
returns a page, so the server never sees it. Technically
everything
in a query string should be URL encoded, but the
"#" character is the
only one that really matters.
> Does anyone have any ideas as to how to put multiple
hCards on one
> page
> and have individual links download individual vCards to
the client's
> address book?
It looks like what you're doing is correct, so I'd suggest
waiting for
Brian to comment on why it isn't working with X2V. It seems
to work
on Technorati's version of X2V:
http://techn
orati.com/contact/http://www.mndm.gov.on.ca/mndm/mines/lands
/pro/contact_e.asp%23devosst
Peace,
Scott
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| RE: Fragment identifiers in hCard links |

|
2008-02-11 11:37:05 |
> -----Original Message-----
> From: microformats-discuss-bounces microformats.org
> [mailto:microformats-discuss-bounces microformats.org] On
> Behalf Of Scott Reynen
> Sent: February 11, 2008 11:21 AM
> To: Microformats Discuss
> Subject: Re: [uf-discuss] Fragment identifiers in hCard
links
>
> On Feb 11, 2008, at 7:33 AM, Rickards, Julian (NDM)
wrote:
>
> > I fixed the page and now it is valid. However,
that doesn't
> change the
> > result. Having done a bit of testing, it appears
that in
> the URI link
> > where I use a fragment identifier (which would
normally use
> the # as
> > in index.html#fragment), I have tried both # and
%23 (where
> that comes
> > from, I don't know) but neither work properly.
>
> "%23" is the URL encoding of the
"#" character. This
> character needs to be encoded to be sent to the server
> because a plain "#" begins a fragment
identifier, which is
> handled by the browser after the server returns a page,
so
> the server never sees it. Technically everything in a
query
> string should be URL encoded, but the "#"
character is the
> only one that really matters.
>
> > Does anyone have any ideas as to how to put
multiple hCards on one
> > page and have individual links download individual
vCards to the
> > client's address book?
>
> It looks like what you're doing is correct, so I'd
suggest
> waiting for Brian to comment on why it isn't working
with
> X2V. It seems to work on Technorati's version of X2V:
>
> http://technorati.com/contact/http://www.mndm.gov.
on.ca/mndm/m
> ines/lands/pro/contact_e.asp%23devosst
>
> Peace,
> Scott
Thanks Scott.
I am quite willing to use Technorati instead of X2V so will
change the
links.
Jules
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Fragment identifiers in hCard links |
  United States |
2008-02-11 12:04:57 |
On Feb 11, 2008, at 6:33 AM, Rickards, Julian (NDM) wrote:
>> -----Original Message-----
>> Please make sure your page is at least
well-formed:
>>
>> http://validator.w3.org/check?uri=http%3A//www.mnd
m.gov.on.ca/
> mndm/mines/lands/pro/contact_e.asp%23devosst
>
> Ryan:
>
> I fixed the page and now it is valid. However, that
doesn't change the
> result. Having done a bit of testing, it appears that
in the URI link
> where I use a fragment identifier (which would normally
use the # as
> in
> index.html#fragment), I have tried both # and %23
(where that comes
> from, I don't know)
'%23' is the url-encoded version of '#'.
> but neither work properly. When I use #, only the
> first contact is downloaded no matter which contact
link I click.
> However, when I use %23 in the URI, the only response I
get is "No
> vCards found" which is obviously not true because
the hCard code meets
> the specs.
>
> Maybe Brian Suda has changed the code on his server
because a test
> page
> of mine that used to work doesn't work any longer.
>
> Does anyone have any ideas as to how to put multiple
hCards on one
> page
> and have individual links download individual vCards to
the client's
> address book?
You're doing it correctly, it appears to be a problem with
X2V. Please
document this issue on http://microf
ormats.org/wiki/xfn-issues .
-ryan
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Fragment identifiers in hCard links |

|
2008-02-11 12:16:10 |
2008/2/11, Scott Reynen <scott randomchaos.com>:
> It looks like what you're doing is correct, so I'd
suggest waiting for
> Brian to comment on why it isn't working with X2V.
--- i had a look into this, and you are doing everything
correctly. I
have updated my code and the URL seems to work for me now:
http://suda.co.uk/projects/microform
ats/hcard/get-contact.php?uri=http://www.mndm.gov.on.ca/mndm
/mines/lands/pro/contact_e.asp%23devosst
I am not sure exactly where the issue is, but i fixed it. It
boils
down to cURL trying to fetch the URL with the fragment. Your
server
was returning an empty file, so i couldn't apply the XSLT to
it. I
changed cURL to fetch URLs without fragment identifiers, so
this won't
break anyone else's requests. I am not sure if this is an
issue with
cURL not correctly handling the URL or the server rejecting
the cURL
request. Eitherway, it is fixed for me, i hope for you as
well.
-brian
--
brian suda
http://suda.co.uk
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| RE: Fragment identifiers in hCard links |

|
2008-02-11 13:08:05 |
> -----Original Message-----
> Either way, it is fixed for me, i hope for you as
well.
Yes, it is fixed now and working perfectly.
Thanks,
Jules
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
[1-8]
|
|