Welcome Guest, Not a member yet? Register   Sign In
Jqgrid and refreshing page
#1

[eluser]chicca[/eluser]
Hi.
I have a page with some text boxes and a jqgrid which i realized following this thread http://ellislab.com/forums/viewthread/157452/
The grid works perfectly but when i add/edit/delete a row, i need to update another table in db with sums of some fields in the table linked to the grid and then i have to write results on some text boxes in the page, so i need to refresh the page to see the new values on these boxes.
I put all these operation in setData function

Code:
public function setData()
{
  $idcard = $this->session->userdata('card');
  $this->load->library('datagrid');
  $grid     = $this->datagrid;
  $response = $grid->operations('shoppinglist','idShoppingList');
  $this->Cards_model->update_total_costs($idcard);
  redirect('this_page/'.$idcard, 'refresh');
}

where 'this_page' is the page with boxes and grid.
I can see that model function is executed correctly but the redirect instruction is totally ignored: infact if i check db, i see the right values but if i write 'blablabla' instead of 'this_page' i dont get any errors.
The only way to see updated text boxes is pressing f5.
Why is redirect ignored and what can i do refresh page w/o using f5?
Thanks in advance.


Messages In This Thread
Jqgrid and refreshing page - by El Forum - 03-21-2012, 04:10 PM
Jqgrid and refreshing page - by El Forum - 03-21-2012, 09:51 PM
Jqgrid and refreshing page - by El Forum - 03-22-2012, 09:52 AM
Jqgrid and refreshing page - by El Forum - 03-22-2012, 11:10 AM
Jqgrid and refreshing page - by El Forum - 03-23-2012, 12:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB