Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Validation

Question posted by: Jean Pierre Daviau (Guest) on June 27th, 2008 07:19 PM
Ho to everyone,


======== http://validator.w3.org/check?uri=' ===========

I would like to rewrite this script to validate files from my desktop.



Thanks for your attention.





------
<SCRIPT type="text/javascript"document.write(' <a
href="http://validator.w3.org/check?uri=' + document.URL + '">valid XHTML
1.1</a>');</SCRIPT>
-------
--
Jean Pierre Daviau

--
windows XP professionnel 2002 SP2
asus p4 s533/333/133

http://jeanpierredaviau.com

Aimons les étrangers; l'on vit avec eux les trois quart de notre vie.


Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Stevo's Avatar
Stevo
Guest
n/a Posts
June 27th, 2008
07:19 PM
#2

Re: Validation
Jean Pierre Daviau wrote:
Quote:
Originally Posted by
Ho to everyone,


Ho to you too :)
Quote:
Originally Posted by
======== http://validator.w3.org/check?uri=' ===========
I would like to rewrite this script to validate files from my desktop.


That's nice for you. Hope it's a fun and useful project.
Quote:
Originally Posted by
Thanks for your attention.


You're welcome.

Jukka K. Korpela's Avatar
Jukka K. Korpela
Guest
n/a Posts
June 27th, 2008
07:19 PM
#3

Re: Validation
Scripsit Jean Pierre Daviau:
Quote:
Originally Posted by
I would like to rewrite this script to validate files from my desktop.


That has nothing to do with stylesheets.
Quote:
Originally Posted by
<SCRIPT type="text/javascript"document.write(' <a
href="http://validator.w3.org/check?uri=' + document.URL + '">valid
XHTML 1.1</a>');</SCRIPT>
-------


Huh? Using JavaScript to generate a simple link is odd, and it is even
odder to do so using non-XHTML syntax for the <scriptelement and
document.write().

Besides, the W3C Markup Validator already has a "validate by file
upload" feature.

But this has nothing to do with stylesheets.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Safalra (Stephen Morley)'s Avatar
Safalra (Stephen Morley)
Guest
n/a Posts
June 27th, 2008
07:19 PM
#4

Re: Validation
On Sun, 15 Jun 2008 07:48:15 -0400, Jean Pierre Daviau wrote:
Quote:
Originally Posted by
======== http://validator.w3.org/check?uri=' ===========
>
I would like to rewrite this script to validate files from my desktop.
>
Thanks for your attention.
>
------
<SCRIPT type="text/javascript"document.write(' <a
href="http://validator.w3.org/check?uri=' + document.URL + '">valid XHTML
1.1</a>');</SCRIPT>



If you want to have a link to validate a file even when it's offline you'd
have to use some clever JavaScript to make a POST request in the same way
the validator's 'direct input' form does. What's wrong with just uploading
the file? Or using a browser extension that tells you whether the page
you're currently viewing is valid?


--
Safalra (Stephen Morley)

The 'white-space' Property In CSS:
http://www.safalra.com/web-design/h...space-property/

Jean Pierre Daviau's Avatar
Jean Pierre Daviau
Guest
n/a Posts
June 27th, 2008
07:19 PM
#5

Re: Validation
Quote:
Originally Posted by
That has nothing to do with stylesheets.
>
Quote:
Originally Posted by
><SCRIPT type="text/javascript"document.write(' <a
>href="http://validator.w3.org/check?uri=' + document.URL + '">valid
>XHTML 1.1</a>');</SCRIPT>
>-------



<p><SCRIPT type="text/javascript"document.write('<A
HREF="http://jigsaw.w3.org/css-validator/validator?uri=' + document.URL +
'">CSS validation</a>');</SCRIPT></p>

This is to automatically input a address for validation in my web pages I
create with ... notepad....
Test it here:
http://privee.jeanpierredaviau.com/xhtm.html


I would like to rewrite this script to validate files uploaded from my
desktop. Something like:

HREF="http://jigsaw.w3.org/css-validator/validator#validate_by_upload?file=C:\



I will try on a javascript group.

Thanks for your attention.



Bergamot's Avatar
Bergamot
Guest
n/a Posts
June 27th, 2008
07:19 PM
#6

Re: Validation

Jean Pierre Daviau wrote:
Quote:
Originally Posted by
>
<p><SCRIPT type="text/javascript"document.write('<A
HREF="http://jigsaw.w3.org/css-validator/validator?uri=' + document.URL +
'">CSS validation</a>');</SCRIPT></p>
>
This is to automatically input a address for validation in my web pages


You don't need JavaScript at all. Look up the 'referer' option, i.e.
http://validator.w3.org/check/referer

--
Berg

Rik Wasmus's Avatar
Rik Wasmus
Guest
n/a Posts
June 27th, 2008
07:19 PM
#7

Re: Validation
On Mon, 16 Jun 2008 13:35:03 +0200, Bergamot <bergamot@visi.comwrote:
Quote:
Originally Posted by
>
Jean Pierre Daviau wrote:
Quote:
Originally Posted by
>>
> <p><SCRIPT type="text/javascript"document.write('<A
>HREF="http://jigsaw.w3.org/css-validator/validator?uri=' + document.URL
>+
>'">CSS validation</a>');</SCRIPT></p>
>>
>This is to automatically input a address for validation in my web pages

>
You don't need JavaScript at all. Look up the 'referer' option, i.e.
http://validator.w3.org/check/referer



Hmmm, 'referer' headers are often not send in my experience (either by UA
setting or possible paranoid firewalls / proxies)
--
Rik Wasmus
....spamrun finished

Bergamot's Avatar
Bergamot
Guest
n/a Posts
June 27th, 2008
07:19 PM
#8

Re: Validation

Rik Wasmus wrote:
Quote:
Originally Posted by
On Mon, 16 Jun 2008 13:35:03 +0200, Bergamot <bergamot@visi.comwrote:
Quote:
Originally Posted by

>
Hmmm, 'referer' headers are often not send in my experience (either by UA
setting or possible paranoid firewalls / proxies)


Well, considering links to the validator are pretty useless anyway, does
it really matter?

There are other ways to validate single pages without it, such as with
the Web Developer Toolbar extension. That's something any interested
party, not just the author, can use.

--
Berg

Rik Wasmus's Avatar
Rik Wasmus
Guest
n/a Posts
June 27th, 2008
07:19 PM
#9

Re: Validation
On Mon, 16 Jun 2008 17:42:50 +0200, Bergamot <bergamot@visi.comwrote:
Quote:
Originally Posted by
Rik Wasmus wrote:
Quote:
Originally Posted by
>On Mon, 16 Jun 2008 13:35:03 +0200, Bergamot <bergamot@visi.comwrote:
Quote:
Originally Posted by

>>
>Hmmm, 'referer' headers are often not send in my experience (either by
>UA
>setting or possible paranoid firewalls / proxies)

>
Well, considering links to the validator are pretty useless anyway, does
it really matter?
>
There are other ways to validate single pages without it, such as with
the Web Developer Toolbar extension. That's something any interested
party, not just the author, can use.
>


I'd say so. The general public doesn't care one lick, and the people who
do know how to check it. Don't supply a possibly failing link then. None
would be best :).
--
Rik Wasmus
....spamrun finished

 
Not the answer you were looking for? Post your question . . .
184,042 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors