Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    47
    Thanks
    1
    Thanked 0 Times in 0 Posts

    validation error... doesn't make sense?

    i am having problems with my slider on the front page of my website
    http://www.germanperformanceservice.com
    on internet explorer only, after a picture slides, the page will scroll down to the bottom. this is very frustrating and distracting.

    i tried the validator, Here and there are only a few errors left, which seem to have to do with the slider problem, but i cant quite figure any of it out (i tried fixing the conditional comment and nothing happened)
    if anyone could help me with this it would be greatly appreciated.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    You can’t have the same ID more than once in a document. And then you’re repeatingly opening and immediately closing an HTML comment in the slider’s list but adding yet another closing comment string after each list item.

  • #3
    New Coder
    Join Date
    Jan 2010
    Posts
    47
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thank you so very much for responding.
    however, i am still confused. is there any way you can help me out?
    if i cant have the same id, what can i do? i tried copying that ID the exact way it was and changing the name, so there were different IDs with the same info, but that didn't seem to work at all for some reason. also, i only see one opening and closing of a comment string... that is the one <!-- and --> i have.
    am i missing something?

  • #4
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    This may explain some of your errors.
    ID's should only be used once. Use classes for multiple use.

    Frank
    Last edited by effpeetee; 02-23-2011 at 04:08 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #5
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,910
    Thanks
    56
    Thanked 544 Times in 541 Posts
    I don't know allowTransparency, but if you want to use the same css for various elements, you can use div class

    html:
    <div class="excsl">

    css:
    .excsl {... }

    your other errors seems to be minor, close your image tags and use <br/> instead of <br>

  • #6
    New Coder
    Join Date
    Jan 2010
    Posts
    47
    Thanks
    1
    Thanked 0 Times in 0 Posts
    i think the error has something to do with the ' --> ' related error which i do not understand. i tried fixing the div to make it a div class instead of id and nothing changed.
    any help!?!? thanks!!

  • #7
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    You have improper use of comment tags all over your page. A proper comment in html is:

    <!-- Comments go here -->

    Notice the opening and closing characters. If you comment out a bit of mark-up, it must be exactly in the syntax above.

    Now, most of the comments I saw on your page were empty, or not even wrapping around any code at all. Remove them completely if they're empty, since they are useless.
    Teed

  • #8
    New Coder
    Join Date
    Jan 2010
    Posts
    47
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by teedoff View Post
    You have improper use of comment tags all over your page. A proper comment in html is:

    <!-- Comments go here -->

    Notice the opening and closing characters. If you comment out a bit of mark-up, it must be exactly in the syntax above.

    Now, most of the comments I saw on your page were empty, or not even wrapping around any code at all. Remove them completely if they're empty, since they are useless.
    thanks but i don't see any improper use of comment tags in my html.. i cant find it.

    the only one i can find is this
    <!-- <?php query_posts("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?> -->
    which i have tried editing many times..and it has the correct code, right? idk what is wrong

  • #9
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Quote Originally Posted by JustinChrono View Post
    the only one i can find is this
    <!-- <?php query_posts("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?> -->
    Oh, there we go. Don’t comment out that second line as it’s starting the wordpress loop. Move the closing comment up after the query_posts function.

  • #10
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by JustinChrono View Post
    thanks but i don't see any improper use of comment tags in my html.. i cant find it.

    the only one i can find is this
    <!-- <?php query_posts("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?> -->
    which i have tried editing many times..and it has the correct code, right? idk what is wrong
    Do you know how to view source? If you go to the validator link you gave, it tells you the line the error is occuring on. Open your page in a browser, then view source. I think lines 160 and 173. On both of those lines you will see closing comment tags there.

    A couple of your other errors I think are just not using the alt attribute for your images. You can just insert alt="" and those will clear up as well.
    Last edited by teedoff; 02-23-2011 at 06:30 PM.
    Teed

  • #11
    New Coder
    Join Date
    Jan 2010
    Posts
    47
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    Oh, there we go. Don’t comment out that second line as it’s starting the wordpress loop. Move the closing comment up after the query_posts function.
    hmm, thanks, i fixed that so it looks like this,
    <!-- <?php query_posts ("cat=$eg_slide_cat&showposts=$eg_slide_posts"); ?> -->
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    instead of how it used to look... however,
    however, the problem still occurs.

    also thanks, i viewed the source, but this doesn't tell me where the code is in my files to edit it, u know?

    plus, if u look at the validator, there is only 1 error left about not understanding the "allowTransparency" .. any other ideas?? thanks
    Last edited by JustinChrono; 02-23-2011 at 07:14 PM. Reason: addition


  •  

    Posting Permissions

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