Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

It does not show third page #1

Open
jferrercas opened this issue Dec 9, 2011 · 3 comments
Open

It does not show third page #1

jferrercas opened this issue Dec 9, 2011 · 3 comments

Comments

@jferrercas
Copy link

Thank you for your code and explanation. I am using it and it works ok showing the second page, but it does not show third page. What I can do?

Thanks

@holgersindbaek
Copy link

Same problem here. Seems very strange.

@jodyalbritton
Copy link

Did anyone get this resolved?

@hiromipaw
Copy link

To be honest I have used json instead to retrieve results from the next pages.

I used this in the controller

respond_to do |format|
format.html # index.html.erb
format.json { render :json => @posts }
format.xml { render :xml => @posts }
end

and the following in javascript:

$.getJSON('/home/index.json?page=' + page, function(data) {
var html = '';
loading=false;
$.each(data, function(post, content) {
});
$("#posts-ex").append(html);

});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants