|
Loading...
|
flexigrid@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
Re: JSON data format requirements? Guillermo Cuadra Wed Apr 04 09:04:34 2012
I think this is a problem of quotes
in this example, page, total, rows, id, cell, have quotes. try it.
{
"page": 1,
"total": 3,
"rows": [{
"id": 1,
"cell": {
"id": 1,
"date": "06\/03\/2011",
"account_number": "123",
"name": "abc1"
}
}, {
"id": 2,
"cell": {
"id": 2,
"date": "06\/03\/2011",
"account_number": "124",
"name": "abc2"
}
}, {
"id": 3,
"cell": {
"id": 3,
"date": "06\/04\/2011",
"account_number": "125",
"name": "abc3"
}
}]
}
2012/4/4 Jeremy Coulson <[EMAIL PROTECTED]>
> Okay, I tried it like this:
>
> {
> page: 1,
> total: 50,
> rows: [
> {
> id:"a0",
> cell: ["226 CLAVEN LN","312"]
> },
> {
> id:"a1",
> cell:["1377 FAIRFAX PIKE","280"]
> }
> ]
> }
>
> And it still fails the same way. Also, that JSON appears to be
> invalid according to jsonlint.com. Am I using your example
> incorrectly?
>
> On Apr 4, 11:09 am, Guillermo Cuadra <[EMAIL PROTECTED]>
> wrote:
> > Page indicate the current view page. ie. if we show 10 record per page,
> and
> > the table have 80 record, we have 8 pages.
> >
> > Total is the total of the register in the table, in the example of 80
> > record, total is 80.
> >
> > Page is useful for the query limit.
> >
> > 2012/4/4 Jeremy Coulson <[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Poyor:
> >
> > > I'm afraid I don't entirely understand the changes to be made. What
> > > do "page" and "total" mean?
> >
> > > Jeremy
> >
> > > On Apr 4, 3:32 am, poyor7 <[EMAIL PROTECTED]> wrote:
> > > > My friend,
> >
> > > > Try this format in ur addresses.js
> >
> > > > {page:1,total:50,rows:[{id:"a0",cell:["226 CLAVEN
> > > > LN","312"]},{id:"a1",cell:["1377 FAIRFAX PIKE","280"]}]}
> >
> > > > On Tuesday, April 3, 2012 10:45:33 PM UTC+8, Jeremy Coulson wrote:
> >
> > > > > I am trying to use Flexigrid for a web app here at work that gets
> some
> > > > > JSON data. The validator athttp://jsonlint.com/saysmy JSON is
> > > > > valid, but when I run my test page with Flexigrid, the grid shows
> my
> > > > > column headings and then just says "processing...please wait"
> > > > > forever. It never shows any data. I figure I've either just
> messed
> > > > > up the code in the page or there's some sort of formatting
> requirement
> > > > > for JSON to which I am not adhering.
> >
> > > > > Here's a link to the test page:
> >
> > > > >http://www.co.frederick.va.us/dev/flexigrid-1.1/test.html
> >
> > > > > Here's a link to my JSON:
> >
> > > > >http://www.co.frederick.va.us/dev/flexigrid-1.1/addresses.js
> >
> > > > > Any help is deeply appreciated. This plugin would solve a pretty
> > > > > major problem at work. Thanks!
> >
> > > > > Jeremy
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Flexigrid for jQuery" group.
> > > To post to this group, send email to [EMAIL PROTECTED]
> > > To unsubscribe from this group, send email to
> > > [EMAIL PROTECTED]
> > > For more options, visit this group at
> > >http://groups.google.com/group/flexigrid?hl=en.
> >
> > --
> > -Solo compartiendo el conocimiento podremos alcanzar la inmortalidad.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flexigrid for jQuery" group.
> To post to this group, send email to [EMAIL PROTECTED]
> To unsubscribe from this group, send email to
> [EMAIL PROTECTED]
> For more options, visit this group at
> http://groups.google.com/group/flexigrid?hl=en.
>
>
--
-Solo compartiendo el conocimiento podremos alcanzar la inmortalidad.
--
You received this message because you are subscribed to the Google Groups
"Flexigrid for jQuery" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flexigrid?hl=en.
- JSON data format requirements? Jeremy Coulson 2012/04/03
- Re: JSON data format requirements? Guillermo Cuadra 2012/04/03
- Re: JSON data format requirements? Jeremy Coulson 2012/04/04
- Re: JSON data format requirements? poyor7 2012/04/04
- Re: JSON data format requirements? Jeremy Coulson 2012/04/04
- Re: JSON data format requirements? Guillermo Cuadra 2012/04/04
- Re: JSON data format requirements? Guillermo Cuadra 2012/04/04
- Re: JSON data format requirements? Jeremy Coulson 2012/04/04
- Re: JSON data format requirements? Jeremy Coulson 2012/04/04
- Re: JSON data format requirements? Jeremy Coulson 2012/04/04
- Re: JSON data format requirements? Guillermo Cuadra 2012/04/04 <=
Re: JSON data format requirements? poyor7 2012/04/04 Re: JSON data format requirements? poyor7 2012/04/04
- Re: JSON data format requirements? Jeremy Coulson 2012/04/05
- Re: JSON data format requirements? poyor7 2012/04/12
Re: JSON data format requirements? Xavier Combelle 2012/04/13
- Re: JSON data format requirements? Jeremy Coulson 2012/04/16
- Re: JSON data format requirements? Eric Caron 2012/04/16
- Re: JSON data format requirements? Jeremy Coulson 2012/04/16
- Re: JSON data format requirements? poyor7 2012/04/16
- Re: JSON data format requirements? Jeremy Coulson 2012/04/17