I want to write a fully constructed string of jQuery.ajax call url. I set the parameters in the data variable of the ajax command, for example:
jQuery.ajax({ url: 'http://a.site.com', data: { format: 'json', name: 'John Smith', addressdetails: 1 }, beforeSend: function(jqXHR, settings) { console.log(jqXHR, settings);
What I would look for in the logs from the above example is this line:
'http://a.site.com?format=json&name=John%20Smith&addressdetails=1'
I feel like I'm missing something. I am convinced that this will be in one of the callback functions, but for me life cannot find it anywhere. Any help was appreciated.
source share