Im using a php page which has all my queries based on a queryid that i pass to it. this is how i load the store the first time:
Code:
dsMovies.load({params:{start: 0, limit: 25, queryid: 201}});
and this is my store:
Code:
var dsMovies = new Ext.data.JsonStore({
totalProperty : 'total',
root : 'results',
url : 'php/myqueries.php',
fields : [
{name: 'movieid', type: 'int'},
'moviename', 'moviegenre', 'movieyear', 'movieoutline', 'movieplot', 'movieimdbid', 'movieposter',
'moviedirector', 'movierating'
]
});
and this is the pagingtoolbar
Code:
var pbarMovies = new Ext.PagingToolbar({
pageSize: 25,
store: dsMovies,
displayInfo: true,
displayMsg: 'Displaying {0} - {1} of {2}',
emptyMsg: "No Movies to display"
});
when the page loads, i can see from firebug that the posted params are:
Code:
limit 25
queryid 201
start 0
but when i press the next button on the paging toolbar this the params that are sent (seen from firebug)
and i get no results back? any thoughts?