-
19 Feb 2007 12:48 PM #11
My script does not seem to get called on paging toolbar click.
-
19 Feb 2007 1:16 PM #12
The GET/POST variables changed to be more mysql friendly.
"page" is now "start" and is the zero based first record to show (not the page anymore). "pageSize" is now "limit".
-
19 Feb 2007 1:17 PM #13
Yeah, on further study I saw that, but the fact still remains that on paging toolbar button click my script is not called again and I still have the weird decimal page number.
Originally Posted by Belgabor
Edit: Got rid of the numbers, turned out I was starting at 1 (old page value started at 1), but it needs to start at 0.
-
19 Feb 2007 1:23 PM #14
-
19 Feb 2007 1:25 PM #15
Yeah, it was and it solved my page numbers. However, my page still is not getting called on page next for the toolbar.
Originally Posted by Belgabor
-
19 Feb 2007 1:30 PM #16
What is your current this.ds.load line? Maybe there is still an error hidden there that leads to this erratic behaviour.
-
19 Feb 2007 1:49 PM #17
kjordan: the error that says "invalid label" for your ScriptProxy will also be resolved if you put ()'s around your entire JSON literal.
IE if you change your resultset to:
Code:({"ResultSet":[{"index":1,"Subject":" network key","Sender":"James Asher <jasher@scalix.xteconline.com>","Recipient":"Kevin Jordan <kevin.jordan@xteconline.com>","Date":"Tue, 30 May 2006 15:23:09 -0500"}],"totalCount":311})
-
19 Feb 2007 1:55 PM #18
Actually I switched to HttpProxy and that error disappeared. I solved my problem with my script not being called. Apparently start is now old start + pageSize.
Originally Posted by aconran
Now I just have to fix whatever's causing my inner layout on my border layout not to show up.
-
19 Feb 2007 2:21 PM #19
Cool, has anyone else noticed the behaviour that ScriptProxy requires ()'s around your JSON but HttpProxy does not?
Maybe this there is a difference with how the returned JSON is eval'd?
Similar Threads
-
Getting cell value using onCellUpdated and the JSONDataModel
By dmayer in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 23 Aug 2007, 1:46 AM -
JSONDataModel
By gizzmo in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 27 Jan 2007, 7:19 AM -
two questions about JSONDataModel and pagingGrid
By luke83 in forum Ext 1.x: Help & DiscussionReplies: 7Last Post: 27 Nov 2006, 7:44 AM -
JSONDataModel, Understanding schema
By irishdunn in forum Ext 1.x: Help & DiscussionReplies: 16Last Post: 3 Nov 2006, 2:39 PM -
JSONDataModel help
By khanh3m in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 25 Oct 2006, 4:27 PM


Reply With Quote