Re: Ajax Pagination not working ?

2012-06-23 Thread JonStark
Ok you were right it worked ! But there's still a little problem (?) : The ajax works indeed in the div with the correct ID, but it load the* full page* again in the div, meaning I have my full page appearing ... in my page. The only way to prevent this is to wrap the entire content in the div

Re: Ajax Pagination not working ?

2012-06-23 Thread Andras Kende
google : "Uncaught ReferenceError : $ is not defined" this looks like jquery not loaded error… I would put jquery at the top inside https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"; type="text/javascript"> Andras Kende http://www.kende.com On Jun 23, 2012, at 2:54 AM, Jo

Re: Ajax Pagination not working ?

2012-06-23 Thread JonStark
The strange thing is that when I inspect with chrome, the script seems to be there : There's an error : Uncaught ReferenceError : $ is not defined Then the script : 1. 2. //

Re: Ajax Pagination not working ?

2012-06-23 Thread JonStark
Actually, the pagination is inside the div, I mis-explained in my question, so it must not be this... This is the full code for info : //rest of the page Paginator->options(array( 'update' => '#posts', 'evalScripts' => true, '

Re: Ajax Pagination not working ?

2012-06-23 Thread Andras Kende
I think Paginator->numbers, Paginator->next, Paginator->prev has to be inside the ….. Andras Kende On Jun 23, 2012, at 1:54 AM, JonStark wrote: > No one has a clue ? This is driving me crazy. > > Thanks a lot. > > Le vendredi 22 juin 2012 18:03:11 UTC+2, JonStark a écrit : > I don't understan

Re: Ajax Pagination not working ?

2012-06-23 Thread JonStark
No one has a clue ? This is driving me crazy. Thanks a lot. Le vendredi 22 juin 2012 18:03:11 UTC+2, JonStark a écrit : > > I don't understand why ajax pagination won't work on my app. > > In my Users controller : > > > class UsersController extends AppController { >> public $name = 'Users'; >> p

Ajax Pagination not working ?

2012-06-22 Thread JonStark
I don't understand why ajax pagination won't work on my app. In my Users controller : class UsersController extends AppController { > public $name = 'Users'; > public $helpers = array('Html', 'Form', 'Paginator', '*Js*'); > public $components = array('*RequestHandler*'); In my layout : >

Re: AJAX Pagination not working on sharedhost

2011-11-27 Thread leigh
Hi Petrisor, That is great it's working, because it's a compatibility issue might even be good to log a ticket or write a patch for it.. I might try and do that. kind regards, Leigh On Nov 27, 7:25 am, Petrisor Buga wrote: > Thx Leigh, > After a few days starring into this problem i finally na

Re: AJAX Pagination not working on sharedhost

2011-11-26 Thread Petrisor Buga
Thx Leigh, After a few days starring into this problem i finally nailed it down after comparing different aspects between local server and online one.It looks like the problem was endeed in viewPath! using this tut. http://bakery.cakephp.org/articles/rtconner/2007/06/29/advanced-pagination-1-2 and

Re: AJAX Pagination not working on sharedhost

2011-11-24 Thread leigh
Hello Petrisor, Check $this->viewPath and $this->view in your controller on the ajax request to see if they're pointing to a view file that exists. Also are you using cake 2.0? Kind regards, Leigh On Nov 24, 7:08 pm, Petrisor Buga wrote: > Hy, i've developed a project locally using MAMP on

AJAX Pagination not working on sharedhost

2011-11-24 Thread Petrisor Buga
Hy, i've developed a project locally using MAMP on a mac, after i moved it online the links generated automatically by cakephp are not working anymore, more precisely i get "500 internal server error" on the ajax-get request and on the response i get: Error: The view for MoviesController::index()

Re: Simple AJAX pagination not working

2011-05-26 Thread Philip Thompson
Those durn multiple js libraries. Go with Mootools and be done with it!! ;) ~Philip On Thu, May 26, 2011 at 4:05 PM, l4yercake wrote: > Philip, thank you for the reply. I had called writeBuffer at the > bottom of the view, so that was not the issue. > > I actually figured out what the problem w

Re: Simple AJAX pagination not working

2011-05-26 Thread l4yercake
Philip, thank you for the reply. I had called writeBuffer at the bottom of the view, so that was not the issue. I actually figured out what the problem was late last night after many hours spent trying different things. I will post here incase anyone else is faced with this problem. The issue was

Re: Simple AJAX pagination not working

2011-05-26 Thread Philip Thompson
You should also have a writeBuffer() call at the end of your home.ctp... Don't know if that will solve all your problems, but it's something. Hope that helps. ~Philip http://lonestarlightandsound.com/ On Wed, May 25, 2011 at 5:16 PM, l4yercake wrote: > Hello all, > > I followed the directions

Simple AJAX pagination not working

2011-05-25 Thread l4yercake
Hello all, I followed the directions in the Cake 1.3 manual to implement ajax pagination (http://book.cakephp.org/view/1600/Ajax-Pagination) and I also tried the method posted by Mark Story (Thanks!) on his blog (http://mark-story.com/posts/view/creating-simple-ajax-pagination-with- cakephp-1-3-an