How is this jQuery plugin loading data? Can't tell from Firebug
I'm working with this jQuery plugin, and watching it save and load data using Firebug (beware, the author has chosen to demo it with pics of scantily-clad women, possibly NSFW): http://www.bennadel.com/resources/projects/jquery_photo_tagger/demo/
I want to work out how the page is loading tags. I'm confused, because the plugin specifies URLs for saving and loading data (save_Tag.cfm
and load_tags.cfm
). Indeed, when I save a tag, I can 'see' the data being sent off to save_Tag.cfm
开发者_开发知识库 in Firebug.
However, when I reload the page, Firebug shows the response from load_tags.cfm
as empty - yet the tag is still loaded.
See the actual plugin code for more details.
Please could anyone explain how the page is loading tags, and also, how I can see this data using either Firebug or Chrome Developer Tools?
Thanks very much!
Check the firebug "Net" tab. Sometimes the requests doesn't appear in the console, and in these cases you can use the "Net" tab (the last one from the tab selector).
In Chrome or safari you can also use the "Network" tab. Here select the option "XHR" to see the Ajax requests.
When I inspect the initial load in Firebug I get this response:
[{"ID":"11033514-FFAE-1669-D1E0F669C6480F74","PHOTOID":"photo3","Y":179.0,"WIDTH":1.0,"HEIGHT":1.0,"MESSAGE":"blah","X":290.0}]
精彩评论