• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Check Box issue in javascript sorting

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem in sorting. I have a table and the first column of all the tbody rows in the table has a checkbox. All the check boxes in the table will be checked by default when the page is loaded initially. I have a sorting functionality. When i try to sort the table, if any check box is unselected, the check box gets selected automatically. The command used for inserting the rows in the table is

table.tBodies[0].appendChild(<<innerHTML of the row>> ;

When i see the innerHTML of the row, the property of the checkbox is unselected. But after the execution of the above command, the checkbox gets selected automatically.


The strange part is this scenario happens only in IE 6. The functionality is working as expected in IE 7.

Has anybody faced this issue before? If so, any solution for the above.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
appendChild(innerHTML) is only supported by IE, so I hope you are not supporting any other browsers like Firefox,Safari or Mozilla.



Eric
 
Deepak Ram
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. It is being supported only for IE browsers. But the problem is between the two versions of IE.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic