I have stripped everything out to barebones pretty much to see if it was
something in the code but this below still makes the page jump (FF / IE /
Chrome that I tested in)

$("a.is_ajax").live('click',function(e) {
        var page_url = $(this).attr("href");
        e.preventDefault();
        $.ajax({
                type: "get",
                url: page_url,
                success: function(response){
                        $('#pageCore').html(response);
                }
                        
        });
        return false; 
});

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Ryan Schmidt
Sent: Monday, March 21, 2011 7:35 AM
To: [email protected]
Subject: Re: Ajax Question


On Mar 21, 2011, at 04:41, Krissy Masters wrote:

> No # used. Regular link created with standard $this->Html->link('title',
> array(controller action), array(class => is_ajax)) so the js will make the
> ajax request based on the class. I would just like the new content to load
> into the div where the page is currently at rather than forcing the page
to
> the top which is annoying.

Hmm. What is the JavaScript code that transforms your is_ajax-classed links?



-- 
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to