473,378 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Validation

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.
Jun 27 '08 #1
8 2829
Jean Pierre Daviau wrote:
Ho to everyone,
Ho to you too :)
======== 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.
Thanks for your attention.
You're welcome.
Jun 27 '08 #2
Scripsit Jean Pierre Daviau:
I would like to rewrite this script to validate files from my desktop.
That has nothing to do with stylesheets.
<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/

Jun 27 '08 #3
On Sun, 15 Jun 2008 07:48:15 -0400, Jean Pierre Daviau wrote:
======== 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/ht...pace-property/
Jun 27 '08 #4
That has nothing to do with stylesheets.
><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.
Jun 27 '08 #5

Jean Pierre Daviau wrote:
>
<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
Jun 27 '08 #6
On Mon, 16 Jun 2008 13:35:03 +0200, Bergamot <be******@visi.comwrote:
>
Jean Pierre Daviau wrote:
>>
<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
Jun 27 '08 #7

Rik Wasmus wrote:
On Mon, 16 Jun 2008 13:35:03 +0200, Bergamot <be******@visi.comwrote:
>>
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)
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
Jun 27 '08 #8
On Mon, 16 Jun 2008 17:42:50 +0200, Bergamot <be******@visi.comwrote:
Rik Wasmus wrote:
>On Mon, 16 Jun 2008 13:35:03 +0200, Bergamot <be******@visi.comwrote:
>>>
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)

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
Jun 27 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
2
by: wumingshi | last post by:
Hi, When validating an XML instance, sometimes the schema is not enough to expression the validation rules. Additional validation rules may be expressed in an application-specific way. For...
4
by: Tim Meagher | last post by:
I am trying to use both validation controls and to add submit button attributes, but when I add the button attributes, the javascript fpr the validation controls is no longer created for the page. ...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
6
by: Stephen | last post by:
Hi, the validation controls dont work on Netscape or Mozilla and only on Internet Explorer why? How do i correct this problem? Thanks
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
4
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
2
by: dustbort | last post by:
I recently had a problem where my required field validator stopped working. But, the page still posted back and tried to insert a record into the database without performing server-side validation....
6
by: Jon Paal | last post by:
validation doesn't fire what's missing ????? /////// ---- code -----/////////////////////////// Sub btnSubmit_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) 'Handles...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.