473,395 Members | 1,495 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,395 software developers and data experts.

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.

Jul 23 '05 #1
12 2476
Gazing into my crystal ball I observed Claire Lescarret <cl*****@nul.com>
writing in news:1111647165.6950d20f95116589c3ff93e1c2ba30e2@t eranews:
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.


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
Jul 23 '05 #2
Els
Claire Lescarret wrote:
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!


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 -
Jul 23 '05 #3
Once upon a time *Claire Lescarret* wrote:
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.


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
Jul 23 '05 #4
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):

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.


Jul 23 '05 #5
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):

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.


Jul 23 '05 #6
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:

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/


Jul 23 '05 #7
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>

Jul 23 '05 #8
On Fri, 25 Mar 2005 23:51:06 -0600, Claire Lescarret <cl*****@nul.com>
wrote:
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.


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

BB
--
www.kruse.co.uk/ se*@kruse.demon.co.uk
seo that loves a cuddle...
--
Jul 23 '05 #9
Gazing into my crystal ball I observed Claire Lescarret <cl*****@nul.com>
writing in news:1111816295.71c59ba3fbe7c101a9aefac2821bb0b7@t eranews:
I understand borders and bgcolor can be "safely" deleted, *but* I'm not
sure about "target" (again)
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.
and this line:
nowrap="nowrap" valign="top" align="left" height="32""


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
Jul 23 '05 #10
Adrienne wrote:
Gazing into my crystal ball I observed Claire Lescarret <cl*****@nul.com>
writing in news:1111816295.71c59ba3fbe7c101a9aefac2821bb0b7@t eranews:
nowrap="nowrap" valign="top" align="left" height="32""


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


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.
Jul 23 '05 #11
Gazing into my crystal ball I observed kchayka <us****@c-net.us> writing
in news:3a*************@individual.net:
Adrienne wrote:
Gazing into my crystal ball I observed Claire Lescarret
<cl*****@nul.com> writing in
news:1111816295.71c59ba3fbe7c101a9aefac2821bb0b7@t eranews:
nowrap="nowrap" valign="top" align="left" height="32""


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


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.


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
Jul 23 '05 #12
kchayka wrote:
Inline style rules are rarely a good idea.


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
Jul 23 '05 #13

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

Similar topics

2
by: Joel | last post by:
Hi! I have a textbox and there is a validating. My question is when I quit (Push Button) I don't want the validating proc to fire, is it possible?
1
by: Craig Beuker | last post by:
Hello, I am experimenting with this XmlValidatingReader and have a question about how it is working (or not working as would be the case) The sample documents and code are included at the end...
6
by: Alex Bink | last post by:
Hi, I have a validating event on a textbox in which I want to prevent the user to leave the textbox without entering the right data. Only if he clicks on another specific control he is allowed...
0
by: Joe | last post by:
Hi For a while now I have been finding postings of problems with the validating event not firing on controls properly. I too had this problem. The event would fire when clicking on another...
2
by: Chris Dunaway | last post by:
I have a form with a textbox and numerous panels, buttons and other controls. I have handled the textbox Validating and Validated events. The textbox will hold a filename. In the validating...
0
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
9
by: chuck | last post by:
I need some help with validating user input. I am writing a C computer program for an intro to C course. Here is the situation. I am creating an application that will do currency conversions. ...
2
by: lenin42001 | last post by:
Help i've just done a basic calculator with three textboxes a label & a button, basically when you add a number in textbox1 to the one in textbox2 it appears in textbox3 .........now the question...
1
by: lenin42001 | last post by:
Help i've just done a basic calculator with three textboxes a label & a button, basically when you add a number in textbox1 to the one in textbox2 it appears in textbox3 .........now the question...
2
by: Peted | last post by:
Hi if i derive a reference to a control on a winform (ie Control activeControl = somecontrol on the form) how can i test if that control has a validating or validated event and more importantly...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.