.post

$.Post contains no response

若如初见. 提交于 2019-12-02 20:22:54
问题 I have a .php file from another server which processes data. This data is tabulated. So whenever I call this page using $.post with the right parameters, its response is nothing. I checked my code and maybe the header is the one responsible for it. What I want actually is to return my tabulated data so that I can populate it to another page. My header is like this, header("Content-type: application/json"); . What am I missing? $.post('http://333.333.33.33/reporting/table.php?loc_id='+locid+'

$.Post contains no response

别来无恙 提交于 2019-12-02 09:12:43
I have a .php file from another server which processes data. This data is tabulated. So whenever I call this page using $.post with the right parameters, its response is nothing. I checked my code and maybe the header is the one responsible for it. What I want actually is to return my tabulated data so that I can populate it to another page. My header is like this, header("Content-type: application/json"); . What am I missing? $.post('http://333.333.33.33/reporting/table.php?loc_id='+locid+'&loc_type='+loctype+'',{loc_id:locid, loc_type: loctype},function(data){ $('table#default_table').hide()