Jquery Ajax help point in right direction

Hi I am using a third party plugin. That if I pass it a url manually it returns a value as expected, when I use AJAX in Jquery it returns nothing, I have no idea how to debug this or how to attempt to sort, any help much appreciated. The url that works The Jquery code that doesn't $.ajax({type: 'Get', url: '', data: {t: 'ab', f: 'DeviceStatus', d: 'C5'}, success: function(data) { alert(data); }, error: function (request, status, error) { alert(request.responseText); } });
Does your aspx page output something that you can check? A quick test is to make your aspx page ONLY output a simple string like "Here I am" (in fact, delete everything else in the aspx file for this test -- you can undelete it again in 2 minutes) and see if that string is alerted in your $.ajax success function. At least you'll know that much is working.

以上就是Jquery Ajax help point in right direction的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准