Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 24th, 2005, 12:55 AM
Claire Lescarret
Guest
 
Posts: n/a
Default Validating question.

Hello,

I have devoted my time to write valid html 4.01 strict, and CSS-1 and 2
*but* I also have to use third party's code for webcounter (StatCounter) and
Google's SiteSearch, which are preventing my pages from validating.

I woudn't like to take away those services, but I also would like to show my
valid pages... Any suggestions will be greatly appreciated!

Thanks in advance.

  #2  
Old July 24th, 2005, 12:55 AM
Adrienne
Guest
 
Posts: n/a
Default Re: Validating question.

Gazing into my crystal ball I observed Claire Lescarret <clairel@nul.com>
writing in news:1111647165.6950d20f95116589c3ff93e1c2ba30e2@t eranews:
[color=blue]
> Hello,
>
> I have devoted my time to write valid html 4.01 strict, and CSS-1 and 2
> *but* I also have to use third party's code for webcounter
> (StatCounter) and Google's SiteSearch, which are preventing my pages
> from validating.
>
> I woudn't like to take away those services, but I also would like to
> show my valid pages... Any suggestions will be greatly appreciated!
>
> Thanks in advance.
>
>[/color]

Will the services still function if you edit the code to make it valid?
I'm sure that they would not want their code to be depreciated
StatCounter is pretty straight forward, remove the language="javascript",
remove the target="_blank", remove border=0, and add a enclose the <a
href=""></a> in a <p> element and it will validate.

The same should be true of the Google's SiteSearch, and you might need to
escape ampersands.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
  #3  
Old July 24th, 2005, 12:55 AM
Els
Guest
 
Posts: n/a
Default Re: Validating question.

Claire Lescarret wrote:
[color=blue]
> Hello,
>
> I have devoted my time to write valid html 4.01 strict, and CSS-1 and 2
> *but* I also have to use third party's code for webcounter (StatCounter) and
> Google's SiteSearch, which are preventing my pages from validating.
>
> I woudn't like to take away those services, but I also would like to show my
> valid pages... Any suggestions will be greatly appreciated![/color]

Statcounter is easy to get valid:

<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=[your-number-here];
var sc_invisible=1;
</script>
<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js"></script><noscript><div><a
href="http://www.statcounter.com"><img
src="http://c1.statcounter.com/counter.php?sc_project=[your-number-here]&amp;java=0"
alt="web site traffic analysis"></a></div></noscript>
<!-- End of StatCounter Code -->

Spot the differences with your own code, and those changes are likely
to be the same for any other JavaScript bit of third party code.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
  #4  
Old July 24th, 2005, 12:55 AM
Arne
Guest
 
Posts: n/a
Default Re: Validating question.

Once upon a time *Claire Lescarret* wrote:
[color=blue]
> Hello,
>
> I have devoted my time to write valid html 4.01 strict, and CSS-1 and 2
> *but* I also have to use third party's code for webcounter (StatCounter) and
> Google's SiteSearch, which are preventing my pages from validating.
>
> I woudn't like to take away those services, but I also would like to show my
> valid pages... Any suggestions will be greatly appreciated!
>
> Thanks in advance.
>[/color]

Statcounter is a good third party service and easy to get valid. I use
their counter even for a XHTML page (used only for fun and testing
purpose) that validates: http://hem.bredband.net/b450204/

--
/Arne

Proud User of Mozilla Suite. Get your free copy here:
*English* http://www.mozilla.org/products/mozilla1.x/
*Svenska* http://www.mozilla.se/mozilla.shtml
  #5  
Old July 24th, 2005, 12:56 AM
Claire Lescarret
Guest
 
Posts: n/a
Default Re: Validating question.

Adrienne,

Thank you for your answer. I began doing just that with Google's code, and
I'll continue with StatCounter too.

Thanks,
Claire.

On 24/3/05 1:38 AM, Adrienne wrote (in part):
[color=blue]
>
> Will the services still function if you edit the code to make it valid?
> I'm sure that they would not want their code to be depreciated
> StatCounter is pretty straight forward, remove the language="javascript",
> remove the target="_blank", remove border=0, and add a enclose the <a
> href=""></a> in a <p> element and it will validate.
>
> The same should be true of the Google's SiteSearch, and you might need to
> escape ampersands.[/color]

  #6  
Old July 24th, 2005, 12:56 AM
Claire Lescarret
Guest
 
Posts: n/a
Default Re: Validating question.

Els,

Your help is very specific! Thanks a lot for those sugestions on js too.

Obrigada de partilhar seu tempo!
Claire.

On 24/3/05 2:18 AM, Els wrote (in part):
[color=blue]
>
> Statcounter is easy to get valid:
>
> <!-- Start of StatCounter Code -->
> <script type="text/javascript">
> var sc_project=[your-number-here];
> var sc_invisible=1;
> </script>
> <script type="text/javascript"
> src="http://www.statcounter.com/counter/counter.js"></script><noscript><div><a
> href="http://www.statcounter.com"><img
> src="http://c1.statcounter.com/counter.php?sc_project=[your-number-here]&amp;j
> ava=0"
> alt="web site traffic analysis"></a></div></noscript>
> <!-- End of StatCounter Code -->
>
> Spot the differences with your own code, and those changes are likely
> to be the same for any other JavaScript bit of third party code.[/color]

  #7  
Old July 24th, 2005, 12:56 AM
Claire Lescarret
Guest
 
Posts: n/a
Default Re: Validating question.

Arne,

Thank you for your answer too. Now it is clear that code won't be a problem.
Thanks,
Claire.

On 24/3/05 2:44 AM, Arne wrote in part:
[color=blue]
>
> Statcounter is a good third party service and easy to get valid. I use
> their counter even for a XHTML page (used only for fun and testing
> purpose) that validates: http://hem.bredband.net/b450204/[/color]

  #8  
Old July 24th, 2005, 12:57 AM
Claire Lescarret
Guest
 
Posts: n/a
Default Re: Validating question.

Hi again.

Now my StatCounter code is OK, even though I can't yet understand why they
use the "target" tag if it can be deleted just like that.

Today I decided to post Google's code basically for the same reasons, since
I woudn't like to delete something important. Could you help me to have it
validated (Html 4.01 Strict) and properly working?

I understand borders and bgcolor can be "safely" deleted, *but* I'm not sure
about "target" (again) and this line:
nowrap="nowrap" valign="top" align="left" height="32""

Thanks!
C.


<form method="get" action="http://www.google.fr/custom"
target="google_window">
<table border="0" bgcolor="#ffffff">
<tr>
<td nowrap="nowrap" valign="top" align="left" height="32"><a
href="http://www.google.com/"> <img
src="http://www.google.com/logos/Logo_25wht.gif"
border="0" alt="Google"></a> <br>
<input type="hidden" name="domains" value="sitename.org">
<input type="text" name="q" size="31" maxlength="255" value="">
<input type="submit" name="sa" value="Google Search">
</td>
</tr>
<tr>
<td nowrap="nowrap"><table>
<tr>
<td><input type="radio" name="sitesearch" value="">
Web</td>
<td><input type="radio" name="sitesearch" value="sitename.org"
checked>
sitename.org</td>
</tr>
</table>
<input type="hidden" name="client" value="#sitenumber">
<input type="hidden" name="forid" value="1">
<input type="hidden" name="ie" value="ISO-8859-1">
<input type="hidden" name="oe" value="ISO-8859-1">
<input type="hidden" name="cof"
value="GALT:#DD8946;GL:1;DIV:#009C31;VLC:99FF16;AH :center;BGC:FFFFFF;LBGC:99
CF46;ALC:002C31;LC:005C31;T:000000;GFNT:0000FF;GIM P:0000FF;LH:50;LW:168;L:ht
tp://www.sitename.org/logo.gif;S:http://www.sitename.org/;FORID:1;">
<input type="hidden" name="hl" value="es">
</td>
</tr>
</table>
</form>

  #9  
Old July 24th, 2005, 12:57 AM
Big Bill
Guest
 
Posts: n/a
Default Re: Validating question.

On Fri, 25 Mar 2005 23:51:06 -0600, Claire Lescarret <clairel@nul.com>
wrote:
[color=blue]
>Hi again.
>
>Now my StatCounter code is OK, even though I can't yet understand why they
>use the "target" tag if it can be deleted just like that.[/color]

3rd-party code; it's like that everywhere.

BB
--
www.kruse.co.uk/ seo@kruse.demon.co.uk
seo that loves a cuddle...
--
  #10  
Old July 24th, 2005, 12:57 AM
Adrienne
Guest
 
Posts: n/a
Default Re: Validating question.

Gazing into my crystal ball I observed Claire Lescarret <clairel@nul.com>
writing in news:1111816295.71c59ba3fbe7c101a9aefac2821bb0b7@t eranews:
[color=blue]
> I understand borders and bgcolor can be "safely" deleted, *but* I'm not
> sure about "target" (again)[/color]

Target is depreciated except for framesets
<http://www.w3.org/TR/html4/present/frames.html#adef-target>.

In this instance, it opens the requested link in a new window, similar to
a popup. This is also frequently used by authors who do not want users
to "leave their site". However, doing this breaks the back button, and
people like me, who use mouse gestures, wonder why gesturing back doesn't
work until I look up and see the back button is greyed out.
[color=blue]
> and this line:
> nowrap="nowrap" valign="top" align="left" height="32""
>[/color]

These attributes are better set using CSS, <td style="white-space:nowrap;
verticle-align: top; text-align: left; height: 32px;">

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
  #11  
Old July 24th, 2005, 12:58 AM
kchayka
Guest
 
Posts: n/a
Default Re: Validating question.

Adrienne wrote:[color=blue]
> Gazing into my crystal ball I observed Claire Lescarret <clairel@nul.com>
> writing in news:1111816295.71c59ba3fbe7c101a9aefac2821bb0b7@t eranews:
>[color=green]
>> nowrap="nowrap" valign="top" align="left" height="32""[/color]
>
> These attributes are better set using CSS, <td style="white-space:nowrap;
> verticle-align: top; text-align: left; height: 32px;">[/color]

These attributes are even better set in an external stylesheet, where
they can be set gloablly. Assign a class selector to the <td> if need be.

Inline style rules are rarely a good idea.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
  #12  
Old July 24th, 2005, 12:58 AM
Adrienne
Guest
 
Posts: n/a
Default Re: Validating question.

Gazing into my crystal ball I observed kchayka <usenet@c-net.us> writing
in news:3alrj7F6d1k98U1@individual.net:
[color=blue]
> Adrienne wrote:[color=green]
>> Gazing into my crystal ball I observed Claire Lescarret
>> <clairel@nul.com> writing in
>> news:1111816295.71c59ba3fbe7c101a9aefac2821bb0b7@t eranews:
>>[color=darkred]
>>> nowrap="nowrap" valign="top" align="left" height="32""[/color]
>>
>> These attributes are better set using CSS, <td
>> style="white-space:nowrap; verticle-align: top; text-align: left;
>> height: 32px;">[/color]
>
> These attributes are even better set in an external stylesheet, where
> they can be set gloablly. Assign a class selector to the <td> if need
> be.
>
> Inline style rules are rarely a good idea.
>[/color]

Absolutely, just showing the construct. Maybe put the Google code in a div
of its own so it could easily use an external sheet.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
  #13  
Old July 24th, 2005, 12:58 AM
Uncle Pirate
Guest
 
Posts: n/a
Default Re: Validating question.

kchayka wrote:
[color=blue]
> Inline style rules are rarely a good idea.
>[/color]

Agreed. Great for newbies though! I got a gal at work (sharp gal)
started on CSS the other day. I showed her my global style sheet for
the site and how to override using inline on specific portions and
defining styles in the head section for a more global change. I also
had her bookmark the properties page of the W3C recommendation for
CSS2.1. She was excited with what I showed her and I'll be able to
expect somewhat better pages from her in the future(Still lots of table
layout though<sigh>).

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
Coordinator, Tularosa Basin Chapter, ABATE of NM; AMA#758681; COBB
'94 1500 Vulcan (now wrecked) :( http://motorcyclefun.org/Dcp_2068c.jpg
A zest for living must include a willingness to die. - R.A. Heinlein
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles