evalentine

Forum Replies Created

Viewing 6 replies - 16 through 21 (of 21 total)
  • Author
    Replies
  • in reply to: no data display with JQGrid and Turbogears #90804
    evalentine
    Participant

    I am glad someone has been able to get this to work. I have upgraded to grid3.6, gone to the Lightness UI, and switched to the /src .js code.

    The response is:

    HTTP/1.0 200 OK
    Server: PasteWSGIServer/0.5 Python/2.5.4
    Date: Mon, 16 Nov 2009 03:18:45 GMT
    Pragma: no-cache
    Cache-Control: no-cache
    Content-Type: text/html; charset=utf-8
    Content-Length: 260

    {page:”1″,total:”1″,records:”5″, rows:[{“279976″,”10009901″,”0″,”None”,”None”}{“279977″,”10009901″,”0″,”11014912″,”None”},{“279978″,”10009901″,”4423″,”11024421″,”None”},{“279979″,”10009901″,”4425″,”11014910″,”None”},{“279975″,”12194001″,”0″,”11083108″,”1”},]}

    With NO cr/lf in the data, one long string.

    I am getting an error “invalid object initializer”

    in reply to: no data display with JQGrid and Turbogears #90759
    evalentine
    Participant

    Is there a way to get the jqgrid.js code with the line feed/ carage returns? now I am getting the error 'invalid object initualizer' and I can not determine where in the code.

    If I set the datatype = 'jsonstring' in the html, there is no request sent back to the host.

    in reply to: no data display with JQGrid and Turbogears #90679
    evalentine
    Participant

    I must be doing something dumb. This is the exact return sent to the client after the form is displayed with no data.I thought this to be the correct format for the response and the Javascript is to read this and insert into the grid.

    Any suggestions?Confused

    Does the content-type need to be “json”?

    HTTP/1.0 200 OK
    Server: PasteWSGIServer/0.5 Python/2.5.4
    Date: Mon, 16 Nov 2009 03:18:45 GMT
    Pragma: no-cache
    Cache-Control: no-cache
    Content-Type: text/html; charset=utf-8
    Content-Length: 260

    {page:”1″,total:”1″,records:”5″, rows:[{“279976″,”10009901″,”0″,”None”,”None”},{“279977″,”10009901″,”0″,”11014912″,”None”},{“279978″,”10009901″,”4423″,”11024421″,”None”},{“279979″,”10009901″,”4425″,”11014910″,”None”},{“279975″,”12194001″,”0″,”11083108″,”1”},]}

    in reply to: no data display with JQGrid and Turbogears #90577
    evalentine
    Participant

    Hope this does not sound really dumb.

    All of the response viewers are showing the full page without

    being replaced with data.

    Is the page supposed to load and then send the data request and load the data? I am thinking that Turbogears as I have it know is passing the page and the json data to the stack in TG2 and TG2 expects to do the replacement in the page.

    If jqgrid is to do the replacement of

    in reply to: no data display with JQGrid and Turbogears #90344
    evalentine
    Participant

    this is the log of the dist sent from the controller :

    23:06:59,946 DEBUG [sensadata.controllers.root]
    {'records': '5', 'total': '1',
    'rows': [{'cell': ['10009901', '0', '”11024438″', 'None'], 'id': '279976'},
    {'cell': ['10009901', '0', '”11014912″', 'None'], 'id': '279977'},
    {'cell': ['10009901', '4423', '”11024421″', 'None'], 'id': '279978'},
    {'cell': ['10009901', '4425', '”11014910″', 'None'], 'id': '279979'},

    in reply to: no data display with JQGrid and Turbogears #90338
    evalentine
    Participant

    Thanks. That stopped the error.

    I still do not have the data displaying in the grid. It is not in the response. All I see is the

    section where as I understand the data should be.

    If I clink the sort arrows on the 'ID' column, I get a request to server and response in the Turbogears log and the message “Loading..” flashes, but no visable data.

    Does this sound like something missing between the Trubogears controller and the templete / page generation?

    Thanks for the help.

Viewing 6 replies - 16 through 21 (of 21 total)

Stay connected with us in your favorite flavor!