OSC-Sevilla Posted April 23, 2012 Share Posted April 23, 2012 I would like to validate as much code as possible. I assume this is a common ask although i have found very little information online on how to sure it. IN HTML VALIDATOR: Line 433, Column 1110: ID "tdb1" already defined…product_info.php?products_id=234" id="tdb1" class="ui-button ui-widget ui-stat… there are many instances ofID "tdb1" , is there are workaround or solution for this??? Quote Link to comment Share on other sites More sharing options...
thejudge99 Posted April 23, 2012 Share Posted April 23, 2012 id's can only be used once , and you have more than 1 element with id="tdb1". This is generally replaced with a class ie. class="tbd1" - as a single class can be used multiple times without error. This will only work of course if the said id="tbd1" isnt being referenced by something else - ie javascript- if it is you need to change its reference to work with the class. This is however more of a html problem than an oscommerce one. Jules Quote Link to comment Share on other sites More sharing options...
OSC-Sevilla Posted April 23, 2012 Author Share Posted April 23, 2012 Thanks Jules, duly noted. Will proceed as advised! Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 23, 2012 Share Posted April 23, 2012 I've seen this bug associated with the cache in osCommerce. Turn off your cache and see if the error is still there. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
OSC-Sevilla Posted April 24, 2012 Author Share Posted April 24, 2012 Cahe is set to FALSE Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 24, 2012 Share Posted April 24, 2012 Not the cache bug then. Those IDs are usually automatically generated by jQuery. You may have one or more that is hardcoded and is therefore not being counted by the script, which then generates a duplicate. Try searching your code for tdb1. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.