Welcome to WebmasterWorld Guest from 54.197.116.116

Forum Moderators: open

Message Too Old, No Replies

javascript table sorter

problem with mozilla with checkbox in table to be sort

   
10:06 am on Dec 16, 2004 (gmt 0)

10+ Year Member



I have tried to use 3 different "table sorter" script (js) that are popular according to google ...

I have a checkbox as one of the field on the table.

e.g.
select ¦ name ¦ numbers ¦
checkbox ¦ some name ¦ 1000 ¦
checkbox2 ¦ somename ¦ 1200 ¦

using mozilla/firefox, when the table is not sorted, (clicking on thead) the values of the checkbox element are submitted (checking $_POST values in php) but if you try to sort the table , then submit , the checkbox element are not submitted. I tried in IE and it worked as expected.

I even use the web developer "add on" to mozilla/firefox and check the FORM Information and when the table is not sorted the form element for the checkbox is listed, when the table is sorted, the checkbox element is NOT listed.

Let us not forget that I use 3 different "sorttable.js" from mattkruse, kryogenix, and 1 I forgot.

Is this a problem with mozilla/firefox? with the javascript? Anyone here have encounter this?

Thanks.

3:52 pm on Dec 21, 2004 (gmt 0)

10+ Year Member



What does your form html look like? Is it valid? If you have checkboxes in TDs then the form element must completely enclose the table element.
6:40 am on Dec 22, 2004 (gmt 0)

10+ Year Member



The problem is I have like 3 separate sortable tables where in all has a checkbox in it, and that is why the table is inside the form. The problems appear to be when using mozilla.

Thanks for the reply.

5:11 pm on Dec 22, 2004 (gmt 0)

10+ Year Member



Do you have a test-case that demonstrates the problem?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month