Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
validation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Adam  
View profile  
 More options Feb 4 2002, 6:19 pm
Newsgroups: alt.html.critique, alt.html.writers, alt.html.writers.guild.list, comp.infosystems.www.authoring.html
From: "Adam" <adambrum...@hotmail.com>
Date: Mon, 04 Feb 2002 22:59:34 GMT
Local: Mon, Feb 4 2002 5:59 pm
Subject: validation
I have this bit of javascript on my page at
http://www.centennialmedia.com/tutorials/images.html

document.form1.html_code.value="<html>\n\n<head>\n   <title>My Home
Page</title>\n</head>\n\n<body>\n<p><img src=\"newspaper.gif\" width=\"44\"
height=\"36\" alt=\"A Newspaper\">\nSee the image to the left of this
sentence?</p>\n</body>\n\n</html>";

It's perfectly legall javascript and I use it to fill the value of a text
area. However I get all kinds of errors when I try to validate the page at
w3c casue it thinks that stuff is html code which it looks like ti but it is
actually contained in a javascript string. Should I just ignore this and
consider my page validated?
Thanks
Adam


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mbS  
View profile  
 More options Feb 4 2002, 6:52 pm
Newsgroups: alt.html.critique, alt.html.writers, alt.html.writers.guild.list, comp.infosystems.www.authoring.html
From: mbS <EvilSpammer...@Nowhere.org>
Date: Mon, 04 Feb 2002 23:52:08 GMT
Local: Mon, Feb 4 2002 6:52 pm
Subject: Re: validation

Try moving the JS functions into a separate
".js" file.  Also try moving the long strings into variables
and set the document.formX.html_code.values to those variables.

mbS
http://www.mbstevens.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Kew  
View profile  
 More options Feb 4 2002, 6:57 pm
Newsgroups: alt.html.critique, alt.html.writers, alt.html.writers.guild.list, comp.infosystems.www.authoring.html
From: n...@fenris.webthing.com (Nick Kew)
Date: Mon, 4 Feb 2002 23:55:18 +0000
Local: Mon, Feb 4 2002 6:55 pm
Subject: Re: validation
In article <qnE78.10932$Kx3.4161...@typhoon.jacksonville.mediaone.net>, one of infinite monkeys
        at the keyboard of "Adam" <adambrum...@hotmail.com> wrote:

> actually contained in a javascript string. Should I just ignore this and
> consider my page validated?

No.  You should read the FAQ, and fix the error.

--
Nick Kew

Site Valet - the mark of Quality on the Web.
<URL:http://valet.webthing.com/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam  
View profile  
 More options Feb 4 2002, 7:53 pm
Newsgroups: alt.html.critique, alt.html.writers, alt.html.writers.guild.list, comp.infosystems.www.authoring.html
From: "Adam" <adambrum...@hotmail.com>
Date: Tue, 05 Feb 2002 00:34:12 GMT
Local: Mon, Feb 4 2002 7:34 pm
Subject: Re: validation

> casue it thinks that stuff is html code

No it correctly detects that the script element is closed;
you need to escape all slashes of closing tags within the string with
backslashes, like <\/title>

Eric B. Bednarz from alt.html found out what is was. I needed to escape my
forward slahes in the string. Validates fine now thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Hughes  
View profile  
 More options May 25 2002, 6:12 pm
Newsgroups: alt.html.critique, alt.html.writers, alt.html.writers.guild.list, comp.infosystems.www.authoring.html
From: Sam Hughes <samhug...@fastmail.fm>
Date: 25 May 2002 22:11:58 GMT
Local: Sat, May 25 2002 6:11 pm
Subject: Re: validation
"Adam" <adambrum...@hotmail.com> wrote in
news:qnE78.10932$Kx3.4161843@typhoon.jacksonville.mediaone.net:

> I have this bit of javascript on my page at
> http://www.centennialmedia.com/tutorials/images.html

> document.form1.html_code.value="<html>\n\n<head>\n   <title>My Home
> Page</title>\n</head>\n\n<body>\n<p><img src=\"newspaper.gif\"
> width=\"44\" height=\"36\" alt=\"A Newspaper\">\nSee the image to the
> left of this sentence?</p>\n</body>\n\n</html>";

> It's perfectly legall javascript and I use it to fill the value of a
> text area. However I get all kinds of errors when I try to validate
> the page at w3c casue it thinks that stuff is html code which it looks
> like ti but it is actually contained in a javascript string. Should I
> just ignore this and consider my page validated?

When you start and end your script...

Replace:
<script type="text/javascript">
...
</script>

with:
<script type="text/javascript"><!--
...
// -->
</script>

--
Keep your web authoring ahead of deprecation.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »