update field modified value in table |
[eluser]handoyo[/eluser]
If i write like this Code: //echo "</tr>\n"; it shows me multiple table cause it loops,should i put the table before the form_open()? Thanks.. ^_^
[eluser]@rno[/eluser]
These are ment as the column(s) where you put your order number, customer etc.
[eluser]handoyo[/eluser]
Sorry Arno,does this codes are correct? Code: echo "<table border='1' cellspacing='0' cellpadding='3' width='600' id='order_home' name='order_home'>\n"; Thanks...
[eluser]@rno[/eluser]
Almost.. ![]() This: Code: echo "<table border='1' cellspacing='0' cellpadding='3' width='600' id='order_home' name='order_home'>\n"; Should be inside the form, so after this: Code: $attributes = array('id' => 'myform'); And just before this: Code: echo form_close(); you should put this Code: </table> G'd luck! Arno
[eluser]handoyo[/eluser]
Is it like this? Code: $attributes = array('id' => 'myform'); By the way i have an error which says that i is not defined in Code: $('#modif_'+i).html(data.modified); and also it only change the second row not the first,the first row and the second row data are also updated..Hehehe.. Would you mind to take a look at my testing site here?The order page..So you can see the problems.. testing site username :admin password :admin God bless you for your kindness..And sorry to bother you.. ^_^
[eluser]@rno[/eluser]
Code: $('#modif_'+i).html(data.modified); was just a sample. From your row, when updating data, you should call a javascript function, with a parameter to indicate wich row the call came from. This parameter can than be stored inside the javascript function and be used on callback to update the correct row. Regards, Arno
|
Welcome Guest, Not a member yet? Register Sign In |