how to get the url/xmlhttprequest that loads to get the data from a server? <p>i have this problem that i can't solve for days now...here is my code. i want to get the xmlhttprequest or the url that loads everytime i clicked the $("#btnQuery"). what happened here is when i clicked the button, it will display the data in jqgrid from the server. </p> <pre><code> $("#btnQuery").click( function() { var params = { "ID": $("#eID3").val(), "dataType": "data" } var url = 'process.php?path=' + encodeURI('project/view') + '&amp;json=' + encodeURI(JSON.stringify(params)); $('#tblD').setGridParam({ url:url, datatype: ajaxDataType, }); $('#tblD').trigger('reloadGrid'); $('#firstur').append('the url: ' + url+'&lt;br&gt;');//the xmlhttpRequest should disply here in my html $('#secur').append('response: ' + url+'&lt;br&gt;'); //the response of xmlhttpRequest should display here in my html }); </code></pre> <p>here's the code of my process.php. this is where i'm going to get the data for my jqgrid.</p> <pre><code> &lt;?php print(file_get_contents("http://localhost/" . $_GET["path"] . "?json=" . ($_GET["json"]))); ?&gt; </code></pre> <p>in firebug console, the xmlhttprequest/location that displays is: <a href="http://localhost/process.php?....%22:%22%22,%22Password%22:%22%22%7D" rel="nofollow">http://localhost/process.php?....%22:%22%22,%22Password%22:%22%22%7D</a></p> <p>and it's response body is simething like:</p> <pre><code>{"result":{"ID":"1C1OMk123tJqzbd"}, "time_elapsed":0} </code></pre> <p>does anybody here knows how to get the url/xmlhttprequest that loads to get the data? and its response body? i wan to display it in my html body aside from my jqgrid...is there anyone who can help me?..please... thank you so much</p>