Where to put breakpoint in Firebug to see returned JSON?

Where to put breakpoint in Firebug to see returned JSON?

MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
edited February 2011 in General
I need to know that my JSON data is coming back because the table is coming up empty.
If I run my server-side script independently, it returns the JSON data perfectly.

Replies

  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    I put one here (around line 2346 in 1.7.5) but it is not breaking at all:
    [code]
    oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, [], function(json)
    [/code]
  • ikselaiksela Posts: 13Questions: 0Answers: 0
    If you check the network tab of Firebug, you will see the JSON response.
  • compcentralcompcentral Posts: 40Questions: 0Answers: 0
    iksela is correct. Click the "Net" tab, then choose XHR (or All), then click the "+" by the script and you will see a JSON tab.
  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    The script that gets the JSON is never being called. It is not on the Net tab, anywhere.
  • MrBaseball34MrBaseball34 Posts: 96Questions: 0Answers: 0
    edited February 2011
    If I wrap my initialization code in:
    [code]
    $(document).ready(function() {
    [/code]

    I get this error:
    [code]
    oColumn is undefined
    jquery.dataTables.js
    Line 6779
    [/code]
    Why would that be happening?

    Is there a way to set the options and then initialize the control after?
This discussion has been closed.