Can't get URI class and jquery Ajax resquest working right. |
[eluser]chefnelone[/eluser]
I'm using ajax request (with jquery). Until now everything went fine. But I have a problem when I use the URI class. When using segments in the url the ajax request doesn't work. If I run this code there's no problem in controller site.php Code: function products(){ in the view views/backend/products.php Code: <form class="updateProduct" action="" method="post"> Code: $(document).ready(function() { EVETHING WORKS FINE But if I change this: Code: $data['product_id'] = '10'; Code: $data['product_id'] = $this->uri->segment(3); And load the page at: I load the page at: http://locallhost/ci/site/products/10 I doesn't work. I don't know how to solve it BUT I know the problem is JUST this line. |
Messages In This Thread |
Can't get URI class and jquery Ajax resquest working right. - by El Forum - 02-01-2010, 11:37 AM
Can't get URI class and jquery Ajax resquest working right. - by El Forum - 02-01-2010, 11:47 AM
Can't get URI class and jquery Ajax resquest working right. - by El Forum - 02-01-2010, 11:58 AM
Can't get URI class and jquery Ajax resquest working right. - by El Forum - 02-01-2010, 12:46 PM
Can't get URI class and jquery Ajax resquest working right. - by El Forum - 02-01-2010, 12:51 PM
Can't get URI class and jquery Ajax resquest working right. - by El Forum - 02-01-2010, 03:06 PM
|