Hi.
Using FireFox V3.6.6 with FireBug V1.5.4 and V1.6X.0a16 (just installed).
I'm tracking the content of an application/json response.
In the NET panel, I have a POST entry.
I expand this and I see Headers, Post, Response and JSON.
I'm using an X-JSON header to report the application status in the
header and an application/json content-type to supply a JSON object in
the body of the response.
The Headers show all this correctly.
As an aside, the X-JSON header is shown as straight code - having this
displayed as an expandable object would be useful.
The Post and Response tabs show the correct data.
The edited response is ...
[{"Jobsheet":"___edit___","Vehicle":"___edit___","Registration":"","Date":"Tuesday,
22<sup>nd<\/sup> January
2008","Supplier":"___edit___","Depot":"Gateshead","Positions":{"OSF":[{"Description":"295\/80R22.5
Continental HSR1","Serial":"061917942"},{"Description":"Truck High
Pressure Valve Cap","Serial":""},{"Description":"Retorque per
Hub","Serial":""},{"Description":"Day call out
charge","Serial":""}]}}]
Nothing wrong with this.
On the JSON tab, I get ...
[-] 0 Object { Jobsheet="___edit___", Vehicle="___edit___", more...}
Clicking on the [-] to expand it, I get ...
[+] 0 Object { Jobsheet="___edit___", Vehicle="___edit___", more...}
No expansion.
Clicking on the object, I get a switched to the DOM tab with window >
object as the selector and "There are no properties to show for this
object." as the content of the tab.
I tried using application/x-javascript as the content-type. No change.
Now I've just tried using GMail on FireFox, with FireBug. The content
of the JSON tab there expands just fine.
I'm using the Prototype.js library in my code. I wonder if there is a conflict.
Is there anyone with a prototype based app using application/json or
application/x-javascript ajax calls who could verify this?
Regards,
Richard Quadling.
--
You received this message because you are subscribed to the Google Groups
"Firebug" 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/firebug?hl=en.