Big Web 2 U
Welcome to Big Web 2 U!

Internet Articles


Fixing Yahoo Webhosting Validation Problem
By William Mandra


Web Link Alliance Partners - Top Search Engine Ranking Solution For Your Client Websites From Web Link Alliance
Partner with Web Link Alliance to add Search Engine Optimization to your product offering. Top Search Engine Rankings with minimal changes to your client websites through a system of web services and a link exchange program where you can Purchase Links directly.


Recently, I was attempting to validate a page for a client`s web site using the HTML Validation Tool and had some interesting and unexpected results. The document failed validation which was strange since I routinely make it a point to double check all of my markup before even uploading the page to the testing server. Determined to get to the bottom of this, I diligently went about inspecting the results and noticed something very peculiar. The errors were the result of HTML that I didn`t put on the page. "How can thiis be?" I wondered. "Where did this come from?"

Design Agency Manchester
The old website that was created by a Design Agency Manchester has served you proud for the past 2 years and when you first started up in business it was just what you needed to give you an immediate online presence. That was then and this is now, a few years down the line, and the time is right to enhance the current site to reflect your business growth. As the business has developed you are receiving more telephone calls from potential customers asking you to provide them with further details about the services and goods that you supply. This is one area where the website could work on your behalf as a few additional pages could be added with that contained useful information. Therefore you have been in touch with the Design Agency Manchester that helped to create your original site. They did a fabulous job first time around and people always give you positive comments about your site. With this in mind you have asked the Design Agency Manchester to provide you with a larger package. They`ll be designing a new 6-10 page website that will provide your customers of old and new with far greater detail about your firm and the products and services that it provides.

It turns out that the code was inserted by Yahoo in order to track site statistics, which I suppose is okay - kind of. There are two major problems with this, the first being the code is inserted after the tag and the other is it isn`t even valid markup. Now, this is the appropriate time for a disclaimer to mitigate the number of people ready to jump on me. Normally I would not use Yahoo`s Webhosting. However, based on past experience I have found their Small Business Merchant Solution makes building an e-commerce site a cost-effective solution for the client and makes updates to the product database very simple.

Getting back to the issue at hand, after a little digging around on the Yahoo help documents I was able to come up with the following solution that will block Yahoo from amending the markup and allow the site to validate.

First, lets start by taking a look at the original markup:

<!-- text below generated by server. PLEASE REMOVE --> <!-- Counter/Statistics data collection code --> <script language="JavaScript" src="http://hostingprod.com/js_source/geov2.js"></script> <script language="javascript">geovisit();</script> <noscript> <img src="http://visit.webhosting.yahoo.com/visit.gif?us1138276907" alt="setstats" border="0" width="1" height="1"> </noscript> <IMG SRC="http://geo.yahoo.com/serv?s=76001524&t=1138276907" ALT=1 WIDTH=1 HEIGHT=1>

The first step to fixing the problem is to turn off site statistics by doing the following:

1. Sign in to your Web Hosting plan.

2. On the Home tab, in the Site Activity module, click the "Site Statistics" link.

3. Click the "Options" link in the upper-right corner of the Site Statistics page.

4. Toward the bottom of the page, select the radio button accompanying "Do not collect statistical data for my site (turn off site statistics)."

5. Click the "Save" button.

This will stop Yahoo from adding this code to your webpages.

Next, we need to take a look at the tracking code and fix the errors. The first error is the "language=`JavaScript`" attribute which is depreciated and no longer used. It has been replaced with the "type=`text/JavaScript`" attribute. The second error is in the SRC attribute for the image, it`s simply the unencoded "&" which should be "&". So with that taken care of here`s the updated code block:

<!-- Counter/Statistics data collection code --> <script type="text/JavaScript" src="http://hostingprod.com/js_source/geov2.js"></script> <script type="text/JavaScript">geovisit();</script> <noscript> <img src="http://visit.webhosting.yahoo.com/visit.gif?us1138276907" alt="setstats" border="0" width="1" height="1"> </noscript> <IMG SRC="http://geo.yahoo.com/serv?s=76001524&amp;t=1138276907" ALT=1 WIDTH=1 HEIGHT=1>

Simply insert the above code into the tags of all your web sites pages and violla and if the rest of your markup is correct the page will validate.

Of course, an even simpler and perhaps better solution would be to simply find another hosting company. But, like I mentioned earlier, in the case of a small to medium e-commerce site Yahoo really is perhaps the most viable option. I would be remiss if I didn`t add that I am really dissapointed in Yahoo though. If they are going to be inserting their own code into other peoples HTML, they should at least make sure it is valid and placed in the proper location. Coming up in a future post I`ll be showing how to validate HTML which contains Flash, since the Macromedia markup used thoughout the web is abysmal and not even close to being valid HTML.

William Mandra
http://www.m-networks.net

Article Source: http://EzineArticles.com/?expert=William_Mandra

For more information about this article and/or the author visit http://www.m-networks.net/

For more information, news and articles see:

Design Agency Manchester - Design Agency Manchester
...ou proud for the past 2 years and when you first started up in business it was just what you needed to give you an immediate online presence. That was then and this is now, a few years down the line,...
Visit Design Agency Manchester...

Web Design Harrogate - Web Design Harrogate
.... She has been looking for a new job doing web design harrogatefor some time now and she considers herself really lucky to have found the perfect job. She is obviously very talented at her work and ...
Visit Web Design Harrogate...

Software Engineer - Software Engineer
... particularly focuses on a methodical approach to the error-free design and building of software. A Software Engineer will developed software with formal methods, Analysis and Design. Using methodolog...
Visit Software Engineer...

Clive Roberts - Clive Roberts
...erts role was to develop the invoice generation and notification for British Airways. Which used SQL2005 (tables, stored procedures, triggers); Reporting Services for the invoices; Notification servic...
Visit Clive Roberts...

Website Design York - Website Design York
... He has wanted to get into website design Yorkfor a long time but he always felt that no decent firm would look at him because he did not have enough experience. However, although he is lacking in e...
Visit Website Design York...

Advertising Agency Bristol - Advertising Agency Bristol
...anies recognise the need to promote their goods and materials otherwise sales would slump and the business could be in trouble. An effective advertising campaign can work wonders for the health of a ...
Visit Advertising Agency Bristol...

Web Design Manchester - Web Design Manchester
...ing off in business is always a struggle. You want to be recognised as quickly as possible so that sales can quickly take an upward spiral. Making your presence felt isn`t always that easy though an...
Visit Web Design Manchester...

Website Design Bristol - Website Design Bristol
...at your web pages look or do they lack a certain web presence? Has the site looked the same for the best part of a decade and could you be found guilty of not moving with the times? You could be dong...
Visit Website Design Bristol...


Click For More Detailed Information on:
easy micro science ::easy thought store ::my future science ::your star science ::your american science

Home  |  About Us  |  Contact Us  |  Articles  |  Special Reports  |  Links  |  Site Map

Copyright © 2003-2010. All Rights Reserved.


Valid CSS!