Hi All I'm trying to load a paging list inside a DIV in another list through ajax jQuery. lists view is working perfectly but it seems that for some reason jQuery can not load it inside a div in another view!!!
here is my javascripts in th eheader: <script type="text/javascript"> function loadPiece(href,divName) { $(divName).load(href, {}, function(){ $(divName).find("a").each(function(i){ $(this).bind('click', function(){ var thisHref = $(this).attr("href"); loadPiece(thisHref,divName); return false; }); }); }); } </script> <script type="text/javascript"> $(document).ready(function() { loadPiece("<?php echo $html->url(array('controller'=>'users_coupons','action'=>'lists'));?>","#my_coupons"); }); </script> here is the div part in the view: <div id="Kuponlarim"> <div class="kupon" id = "my_coupons"> </div> </div> and here is my lists method in the controller function lists(){ $this->UsersCoupon->recursive = 2; $this->paginate = array( 'conditions' => array('UsersCoupon.user_id' => $this->Session->read('Auth.User.id')), 'limit' => 5 ); if(isset($this->params['requested'])) { return $this->paginate('UsersCoupons'); } $cops = $this->paginate('UsersCoupon'); $this->set('usersCoupons',$cops); } any idea??? -- View this message in context: http://old.nabble.com/need-to-load-a-paging-controller-through-jQuery-tp28380974p28380974.html Sent from the CakePHP mailing list archive at Nabble.com. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en