Jump to content



Photo
- - - - -

HTML VALIDATION - id="tdb1" cure

2.3.1

  • Please log in to reply
5 replies to this topic

#1   OSC-Sevilla

OSC-Sevilla
  • Members
  • 396 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 23 April 2012 - 10:25

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???

#2   thejudge99

thejudge99
  • Members
  • 120 posts
  • Real Name:Julian

Posted 23 April 2012 - 17:53

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

#3   OSC-Sevilla

OSC-Sevilla
  • Members
  • 396 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 23 April 2012 - 20:41

Thanks Jules, duly noted.

Will proceed as advised!

#4   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,648 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 23 April 2012 - 23:40

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

My Addons

Banners Box 2.3+ Support
Categories Accordion Box 2.3+ Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3+ Support
Get 1 Free 2.2x & 2.3.x & BS Support Bootstrapped
Modular Front Page 2.3+ Support
Modular SEO Header Tags 2.3+ Support
Multi-Vendor Shipping (MVS) 2.2x & 2.3.x Support
PDF Datasheet 2.3+ Support
Price in Cart Only / MAPP 2.3+ Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review All Versions Support
Shopping List 2.3+ Support !
Specials Image Overlay 2.3+ Support
Superfish Categories Box 2.3+ & BS Support Bootstrapped
Theme Switcher 2.3+ & BS Support  Bootstrapped


#5   OSC-Sevilla

OSC-Sevilla
  • Members
  • 396 posts
  • Real Name:George
  • Gender:Male
  • Location:Sevilla, Spain

Posted 24 April 2012 - 15:35

Cahe is set to FALSE

#6   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,648 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 24 April 2012 - 16:30

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

My Addons

Banners Box 2.3+ Support
Categories Accordion Box 2.3+ Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3+ Support
Get 1 Free 2.2x & 2.3.x & BS Support Bootstrapped
Modular Front Page 2.3+ Support
Modular SEO Header Tags 2.3+ Support
Multi-Vendor Shipping (MVS) 2.2x & 2.3.x Support
PDF Datasheet 2.3+ Support
Price in Cart Only / MAPP 2.3+ Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review All Versions Support
Shopping List 2.3+ Support !
Specials Image Overlay 2.3+ Support
Superfish Categories Box 2.3+ & BS Support Bootstrapped
Theme Switcher 2.3+ & BS Support  Bootstrapped