Forum


21:17

09/11/2009

I have a table that I have successfully used tabletogrid on. The columns sort properly (except for the column with a button), the layout is fine (using a dynamic caption and height of 'auto'). The big problem is that the button that is part of the table is also part of a form. I have tried with the button type as 'Submit' and also just as a button that calls a javascript function to submit the form. Neither works. If I remove the tabletogrid call, then the form submits just fine.
Here is some of the table layout:
<table id='AO_ViewOpen' class='grid_table' border='0' cellpadding='2' width='100%' cellspacing='3'><thead> <TR> <th align=left height='25' valign='center'><span>ereq</span></th> <th align=left height='25' valign='center'><span>Creator</span></th> <th align=left height='25' valign='center'><span>Requestor</span></th> <th align=left height='25' valign='center'><span>Cost</span></th> <th align=left height='25' valign='center'><span>Created</span></th> <th align=left height='25' valign='center'><span>Status</span></th> <th align=left height='25' valign='center'><span>Vendor</span></th> </TR></thead><tbody><TR><form id = 'AO' action='ViewRequest.asp' method='POST' name='AO'> <input type='hidden' name='AO' value='AO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1722090></font></TD> <TD align=left ><font size='2' color='#000000'>Larry Wilson</font></TD> <TD align=left ><font size='2' color='#000000'>LJ Wilson</font></TD> <TD align=left ><font size='2' color='#000000'>$0.02</font></TD> <TD align=left ><font size='2' color='#000000'>11/5/2009 10:20:59 AM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'>CHARLES RIVER LABORATORIES </font></TD> </form></TR> </tbody></TABLE><br> <table id='PO_ViewOpen' class='grid_table' border='0' cellpadding='2' width='100%' cellspacing='3'><thead> <TR> <th align=left height='25' valign='center'><span>ereq</span></th> <th align=left height='25' valign='center'><span>Creator</span></th> <th align=left height='25' valign='center'><span>Requestor</span></th> <th align=left height='25' valign='center'><span>Cost</span></th> <th align=left height='25' valign='center'><span>Created</span></th> <th align=left height='25' valign='center'><span>Status</span></th> <th align=left height='25' valign='center'><span>Vendor</span></th> </TR></thead><tbody><TR><form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1752972></font></TD> <TD align=left ><font size='2' color='#000000'>John Doe</font></TD> <TD align=left ><font size='2' color='#000000'>John Doe</font></TD> <TD align=left ><font size='2' color='#000000'>$3,298.00</font></TD> <TD align=left ><font size='2' color='#000000'>12/28/2009 8:38:45 AM</font></TD> <TD align=left ><font size='2' color='#000000'>Assigned</font></TD> <TD align=left ><font size='2' color='#000000'>Dundas Charting</font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1743914></font></TD> <TD align=left ><font size='2' color='#000000'>Larry Wilson</font></TD> <TD align=left ><font size='2' color='#000000'>LJ Wilson</font></TD> <TD align=left ><font size='2' color='#000000'>$0.01</font></TD> <TD align=left ><font size='2' color='#000000'>12/10/2009 1:36:27 PM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1743263></font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>$0.00</font></TD> <TD align=left ><font size='2' color='#000000'>12/9/2009 3:03:49 PM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1743034></font></TD> <TD align=left ><font size='2' color='#000000'>Larry Wilson</font></TD> <TD align=left ><font size='2' color='#000000'>LJ Wilson</font></TD> <TD align=left ><font size='2' color='#000000'>$0.01</font></TD> <TD align=left ><font size='2' color='#000000'>12/9/2009 11:55:25 AM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1742906></font></TD> <TD align=left ><font size='2' color='#000000'>Larry Wilson</font></TD> <TD align=left ><font size='2' color='#000000'>LJ Wilson</font></TD> <TD align=left ><font size='2' color='#000000'>$0.01</font></TD> <TD align=left ><font size='2' color='#000000'>12/9/2009 9:46:10 AM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1742450></font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>$0.00</font></TD> <TD align=left ><font size='2' color='#000000'>12/8/2009 2:33:56 PM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1742444></font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>$0.00</font></TD> <TD align=left ><font size='2' color='#000000'>12/8/2009 2:29:35 PM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1681097></font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>$0.00</font></TD> <TD align=left ><font size='2' color='#000000'>9/2/2009 11:30:45 AM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1662825></font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>$3,500.00</font></TD> <TD align=left ><font size='2' color='#000000'>8/5/2009 9:51:15 AM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1658293></font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>Jane Doe</font></TD> <TD align=left ><font size='2' color='#000000'>$0.00</font></TD> <TD align=left ><font size='2' color='#000000'>7/28/2009 4:35:10 PM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> <tbody><TR> <form id = 'PO' action='ViewRequest.asp' method='POST' name='PO'> <input type='hidden' name='PO' value='PO'> <TD align=left ><font size='2'><input type='submit' name='ereq' value=1602129></font></TD> <TD align=left ><font size='2' color='#000000'>John Doe</font></TD> <TD align=left ><font size='2' color='#000000'>dfg dfg</font></TD> <TD align=left ><font size='2' color='#000000'>$0.00</font></TD> <TD align=left ><font size='2' color='#000000'>5/4/2009 12:50:57 PM</font></TD> <TD align=left ><font size='2' color='#000000'>Created</font></TD> <TD align=left ><font size='2' color='#000000'></font></TD> </form></TR> </tbody></TABLE>
Nothing happens when I press the submit button when the table is converted to a grid. I have compared source from both with and without tabletogrid, and the source is the same.
Any ideas?
21:51

09/11/2009

Correction - when I inspect the submit button (with the tabletogrid conversion), I do not see the form tag. When I inspect the submit button (without calling tabletogrid), the form tag is there.
Why would the tabletogrid be stripping off the form?
No tabletogrid:
Most Users Ever Online: 715
Currently Online:
56 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66