Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

W3C URL validation

New Here ,
Apr 29, 2008 Apr 29, 2008
I have an XHTML (Transitional) page that includes absolute URLs to ColdFusion pages. These URLs include characters, such as &, that the W3C won't validate unless I change the characters to their ASCII equivalents. However, if I do this, then the URL doesn't work.

Is there a way to validate ColdFusion URLs in W3C's validator?

Thank you.
559
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2008 Apr 29, 2008
Urmo5 wrote:
>
> Is there a way to validate ColdFusion URLs in W3C's validator?
>

There is not such thing as an "ColdFusion" URL. A URL is an URL and
ColdFusion processes whatever the web server passes it as the URL.

What are these special characters doing and why can't you escape them.
You do realize that there is a different escaping scheme for URL's then
there is for HTML. You don't use '&' but rather the ascii code of
'%36'.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 29, 2008 Apr 29, 2008
I'm not a ColdFusion developer - so I'm not sure why our URLs have these characters in them. I'll ask one of our developers.

No, I wasn't aware that there is a different escaping ASCII scheme for URLs. Is there a list of these available somewhere?

Thanks for the response.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2008 Apr 29, 2008
Why won't something like this work?

<a
href="page.cfm?cat=#rsTest.cat#&subcat=#rsTest.cat#">#rsTest.item#</a>

The & replaces the &

--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com


"Urmo5" <webforumsuser@macromedia.com> wrote in message
news:fv786p$cgm$1@forums.macromedia.com...
> I'm not a ColdFusion developer - so I'm not sure why our URLs have these
> characters in them. I'll ask one of our developers.
>
> No, I wasn't aware that there is a different escaping ASCII scheme for
> URLs.
> Is there a list of these available somewhere?
>
> Thanks for the response.
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2008 Apr 29, 2008
Ken Ford wrote:
>
> The & replaces the &
>

This is the correct way to escape the '&' character that separates
name-value pairs in the URL query string. You use the %38 to escape the
'&' character if it is part of one of the values.

<a href="url-test.html?id=abc123&title=dick%26jane">Test URL</a>

Link to URL Encoding hex codes.
http://www.w3schools.com/TAGS/ref_urlencode.asp


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 29, 2008 Apr 29, 2008
LATEST
Ian Skinner wrote:
> You use the %38 to escape

*%26* -- I am not sure where %38 came from that would be a 'h' character.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources