Results 1 to 5 of 5
  1. adma84's Avatar
    Posts
    285 Posts
    Global Posts
    323 Global Posts
       #1  
    so, I am using Object.toJSON(myobject) to get a JSON string of some AJAX returns for google spreadsheets, but the problem is...with some of googles spreasheets returns, the string is HUGE. When I try to print to Mojo.Log.info, I simply get nothing. I can check the length and see its like 8900 chars long.

    Does anyone know what the max size message can be to log? Is there a better way for me to do this than by splicing these huge strings up? Thanks!

    I am really just trying to make sure I understand the JSON structure properly...
    My Programs: TipIt(TipCalc), FillUps
  2. #2  
    why not run the same code in your browser and view it in there? (on your desktop pc)
  3. adma84's Avatar
    Posts
    285 Posts
    Global Posts
    323 Global Posts
       #3  
    Quote Originally Posted by rboatright View Post
    why not run the same code in your browser and view it in there? (on your desktop pc)
    Im really new to web type development and really don't know how I could do that.

    Basicially, it takes several steps to get to individual rows in a worksheet

    1. You get an authorized key
    2. You request list of spreadsheets
    3. you request worksheet in selected spreadsheet
    4. you get returned the rows from the spreadsheet


    Im at that last step, how can I load the returned AJAX response into my browser? Thanks!
    My Programs: TipIt(TipCalc), FillUps
  4. #4  
    assume that your scene has a div that is <div id="spreadsheetHere"></div>

    so, after you have the html back from google, do

    $('spreadsheetHere').innerHTML = ajaxResultString;

    and it will insert that into the dom of the scene you're viewing.

    Is that what you want?
  5. adma84's Avatar
    Posts
    285 Posts
    Global Posts
    323 Global Posts
       #5  
    ahh yes, that could work....although, that would go to my pre application active scene though. Were you suggesting I could push that to my desktop's browser somehow?
    My Programs: TipIt(TipCalc), FillUps

Posting Permissions