homepage Welcome to WebmasterWorld Guest from 54.197.211.197
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
javascript table sorter
problem with mozilla with checkbox in table to be sort
copongcopong

10+ Year Member



 
Msg#: 2910 posted 10:06 am on Dec 16, 2004 (gmt 0)

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.

 

MikeFoster

10+ Year Member



 
Msg#: 2910 posted 3:52 pm on Dec 21, 2004 (gmt 0)

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.

copongcopong

10+ Year Member



 
Msg#: 2910 posted 6:40 am on Dec 22, 2004 (gmt 0)

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.

MikeFoster

10+ Year Member



 
Msg#: 2910 posted 5:11 pm on Dec 22, 2004 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved