icydee
4 Oct 2007, 11:08 AM
I have tried the basic example grid control in the tutorial and it works fine getting data from the vinylfox domain.
I modified the code to get data from my own php script (based on the example) and if I run it from the command line I get something like the following.
({"total":"2","results":[{"id":"1","name":"john smith","title":"mr","hire_date":"2007-10-01","active":"1"},{"id":"2","name":"joe bloggs","title":"mr","hire_date":"2007-10-02","active":"1"}]})
(accepting that the callback is not set).
You should be able to make the call yourself at this URL to see what it returns.
http://icydee.com/ext/grid-paging/grid-paging-data.php
If you look at the grid control at http://icydee.com/ext/grid-paging/ you can see that it does not display any data.
I can only think that the JSON returned is not correct but can't see how to check it.
Any ideas?
I modified the code to get data from my own php script (based on the example) and if I run it from the command line I get something like the following.
({"total":"2","results":[{"id":"1","name":"john smith","title":"mr","hire_date":"2007-10-01","active":"1"},{"id":"2","name":"joe bloggs","title":"mr","hire_date":"2007-10-02","active":"1"}]})
(accepting that the callback is not set).
You should be able to make the call yourself at this URL to see what it returns.
http://icydee.com/ext/grid-paging/grid-paging-data.php
If you look at the grid control at http://icydee.com/ext/grid-paging/ you can see that it does not display any data.
I can only think that the JSON returned is not correct but can't see how to check it.
Any ideas?