[thelist] Custom Validator HREF

Joe Crawford jcrawford at avencom.com
Wed Oct 24 13:59:40 CDT 2001


Aaron Cole wrote:
> I am attempting to create a dynamic href that will send the current page of
> my CF site to the W3 Validator.
> 
> To do this, I've used the following:
> 
> <a href="
> http://validator.w3.org/check?uri=http://www.chimp.com<cfoutput>#CGI.PATH_INFO#?#QUERY_STRING#</cfoutput>"
> target="new">validate</a>
> 
> This all seems to work fine until I get to the W3 page.  The url it
> validates only includes the first argument,
> 
> So if I pass the url http://www.chimp.com/index.cfm?id=4&x=12 the Validator
> only utilizes the id=4 variable.
> 
> Any ideas?  Is there another cgi variable when passing mulitple arguments?

Probably choking on the ampersand - I like rudy's suggestion - you might
try URLEncodedFormat() as a means to make it more palatable to the
validator...

<cfoutput>
<a
href="http://validator.w3.org/check?uri=http://www.chimp.com#CGI.PATH_INFO#?#URLEncodedFormat(QUERY_STRING)#"
target="_blank">validate</a>
</cfoutput>

Maybe?

	- Joe <http://artlung.com/>
-- 
...................  Joe Crawford \\ Web Design & Development
.....  mailto:jcrawford at avencom.com \\ http://www.avencom.com
.... San Diego \\ CA \\ USA \\ AVENCOM: Set Your Sites Higher




More information about the thelist mailing list