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,542 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 Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#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,542 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 Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price in Cart Only/MAPP Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support
Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated