Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Oct 2006
    Location
    UK
    Posts
    216

    Default web site validation

    is it necessary to have website validation 100%

    i've recently been test the validation of my pages in dreamweaver and they are ok apart from the ones where i have paypal buttons and radio buttons, does this mean that for some people browsing they wouldnt' see my buttons because of the errors?

    i'm doing a whole new site and need radio buttons and paypal buttons but if this code does bring up errors then i need to look again and see how to do it so it does validate

    here is the code if anyone is interested to see why it doesn't validate?

    Code:
    <script language="javascript">
    function GetSelectedItem() {
    
    chosen = ""
    len = document.myform.os0.length
    
    for (i = 0; i <len; i++) {
    if (document.myform.os0[i].checked) {
    chosen = document.myform.os0[i].value
    }
    }
    
    if (chosen == "3/4 x 4") {
     document.myform.amount.value = 3.99;
     document.myform.item_name.value = "3/4 x 4 Arrow Wraps X 12 + 1 Free";
        }
    if (chosen == "1 x 4") {
     document.myform.amount.value = 3.99;
     document.myform.item_name.value = "1 x 4 Arrow Wrap X 12 + 1 Free";
        }        
    if (chosen == "1 x 7") {
     document.myform.amount.value = 4.49;
     document.myform.item_name.value = "1 x 7 Arrow Wrap X 12 + 1 Free";
        }
    if (chosen == "1.25 x 7") {
     document.myform.amount.value = 4.49;
     document.myform.item_name.value = "1.25 x 7 Arrow Wrap X 12 + 1 Free";
        }        
    
    
    }
    
    
    </script>
    			<form target="paypal" method="post" name="myform" action="https://www.paypal.com/cgi-bin/webscr">
    				<input type="hidden" name="item_name" value="5/8 x 4">
    				<input type="hidden" name="amount" value="3.99">
    				<input type="hidden" name="on0" value="Colour">
    				<p align="left">
    				<input name="os0" type="radio" value="5/8 x 4"><font size="2">5/8&quot; x 4&quot;&nbsp;&nbsp;&nbsp;&nbsp; 
    				£3.99 
    				</font> <br>
    				<input name="os0" type="radio" value="3/4 x 4"><font size="2">3/4&quot; x 4&quot;&nbsp;&nbsp;&nbsp;&nbsp; 
    				£3.99 
    				</font> <br>
    				<input name="os0" type="radio" value="1 x 4"><font size="2">1&quot; x 4&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    				£3.99 
    				</font> <br>
    				<input name="os0" type="radio" value="1 x 7"><font size="2">1&quot; x 7&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    				£4.49 </font><br>
    				<input name="os0" type="radio" value="1.25 x 7"><font size="2">1.25&quot; 
    				x 7&quot;&nbsp;&nbsp; £4.49 </font><br>
    				<br>
    				&nbsp;<select name="os0">
    				<option value="Red">Red</option>
    				<option value="Orange">Orange</option>
    				<option value="Yellow">Yellow</option>
    				<option value="Green">Green</option>
    				<option value="Blue">Blue</option>
    				<option value="Pink">Pink</option>
    				<option value="Violet">Violet</option>
    				<option value="Silver">Silver</option>
    				<option value="White">White</option>
    				</select><br>
    				<img alt="" border="0" src="Page8files/pixel.gif" width="1" height="1">
    				<input type="hidden" name="add" value="1">
    				<input type="hidden" name="cmd" value="_cart">
    				<input type="hidden" name="business" value="Payments@quickstandarchery.co.uk">
    				<input type="hidden" name="page_style" value="PayPal">
    				<input type="hidden" name="no_shipping" value="2">
    				<input type="hidden" name="return" value="http://www.quickstandarchery.co.uk/page8.html">
    				<input type="hidden" name="currency_code" value="GBP">
    				<input type="hidden" name="lc" value="UK">
    				<input type="hidden" name="bn" value="PP-ShopCartBF">
    				<input type="image" src="Page8files/x-click-but22.gif" border="0" name="submit" onClick="GetSelectedItem()" alt="Please choose color and size" align="left" hspace="2" width="87" height="23"></p>
    			</form>
    IP

  2. #2
    Join Date
    Nov 2006
    Posts
    1,602

    Default Re: web site validation

    When using FF,it has a webdeveloper bar as add on ( http://chrispederick.com/work/web-developer/ )
    It shows directly the validation in this bar.
    The css must be validated and the html, so it's correct to show in all mainstream browsers.
    But javascript will never pass because variables you cannot validate
    But you can learn from the warnings and adjust them.
    The warnings usually show recommendations.
    If you got errors,now there is something wrong and it might not work.
    (FYI:some programs or scripters allready use new CSS-3 features that are not going to be validated in CSS-2)

    Hans
    IP

  3. #3
    Join Date
    Oct 2005
    Location
    Prague, Czech Republic
    Posts
    231

    Default Re: web site validation

    Most browsers (all?) will probably handle these errors and display everything "correctly", they usually accept deprecated elements, attributes and other things that are not part of the specification in case of HTML 4.01.

    For example usage of FONT element is not valid, attributes like BORDER are not used (use css instead) etc. I dont know dreamweaver and how it performs validation but that validation within FF or W3C web validator give you comments and explanations so you get an idea how to correct errors. It's really often just use of deprecated elements or something like that.
    IP

  4. #4
    Join Date
    Oct 2006
    Location
    UK
    Posts
    216

    Default Re: web site validation

    thanks guys i appreciate your replies

    i've used the first website that comes up with the search 'validation' on google and tried a few websites with it........talkgraphics gets one error so that very good but ebay uk gets 223 errors and amazon get 1479 so it must be like you say Suvek the browser can handle them and display everything correctly
    IP

  5. #5
    Join Date
    Aug 2006
    Posts
    73

    Default Re: web site validation

    Quote Originally Posted by suunto View Post
    is it necessary to have website validation 100%

    i've recently been test the validation of my pages in dreamweaver and they are ok apart from the ones where i have paypal buttons and radio buttons, does this mean that for some people browsing they wouldnt' see my buttons because of the errors?

    i'm doing a whole new site and need radio buttons and paypal buttons but if this code does bring up errors then i need to look again and see how to do it so it does validate
    It is not necessary to have 100% valid code, but it ensures functionality. Also, I think that xhtml might not work out properly if it's not valid, as xhtml is more strict than other languages.
    Ofcourse, if you look at some of the most popular pages on the net, they are not 100% valid, but also note that most of them display a little differently from browser to browser.

    If you are looking for a good tool for validation, I'd suggest Total Validator as it is an downloadable tool you can install to your browser to validate all pages, even if you don't have net.
    I find this very handy as I run XAMPP and test all my pages in FireFox before I upload them.
    IP

  6. #6
    Join Date
    Oct 2006
    Location
    UK
    Posts
    216

    Default Re: web site validation

    thanks Manwe
    this is starting to give me a headache as i don't know how to alter the code to correct the errors plus it sounds like you know a lot more about this that me and your site on your link has 13 errors and 26 here
    http://="http://validator.w3.org/che...Inline&group=0

    how can you get a site to validate 100%
    Last edited by suunto; 06 June 2008 at 07:59 PM. Reason: link didn't work
    IP

  7. #7
    Join Date
    Aug 2006
    Posts
    73

    Default Re: web site validation

    Quote Originally Posted by suunto View Post
    this is starting to give me a headache as i don't know how to alter the code to correct the errors
    Which is why I suggested Total Validator, as it gives you more spesific information on the errors. It still requires you to read some to correct the errors, but after an hour or two, you'll know what's wrong at most errors.
    Quote Originally Posted by suunto View Post
    plus it sounds like you know a lot more about this that me and your site on your link has 13 errors and 26 here
    http://validator.w3.org/check?uri=ww...Inline&group=0

    how can you get a site to validate 100%
    Hehe, two reasons for that;
    1: Most of those errors come from the domain (dot.tk) where I cannot change the code.
    2: I gave up on that site a little while ago, and are working on making a new one, which will validate
    Thorbear's Homepage Remake
    Last edited by Manwe; 07 June 2008 at 06:53 PM.
    IP

  8. #8
    Join Date
    Oct 2006
    Location
    UK
    Posts
    216

    Default Re: web site validation

    thanks, i think it is the paypal code which is causing all the prolems and when i change it the buttons aren't working properly

    can anyone suggest an alternative easy payment method to add to my site?
    Thanks
    IP

  9. #9
    Join Date
    May 2014
    Posts
    25

    Default Re: web site validation

    Making full error free site is impossible I guess if you are using any CMS e.g wordpress if you use HTML or static site then it can be possible.
    IP

  10. #10
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,503

    Default Re: web site validation

    @diyalden - Last response in this thread was on 08 June 2008. Today is 11 November 2014.
    IP

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •