通过ajax请求访问数据库时出错

时间:2012-03-26 20:03:16

标签: javascript ajax jquery jquery-mobile

当我在Firefox海报中运行以下代码的url时,它运行成功,但是当我尝试在我的移动应用程序的js文件中运行$ .ajax的帮助时,它给了我“错误”。为什么? (order_id不是问题)......

$('#page_custinfo').bind('submit',function(){
   $.ajax({
          url: "http://localhost/putDetails.php?order_id=3&fname=seth&lname=rahul&email=ol@gmail.com&s_add1=karveroad&products=nokia&order_status=pending&order_total=1000&city=pune&postal_code=033&country=india",
          type: 'GET',
          contentType: 'application/x-www-form-urlencoded' ,  
              success : function (serverResponse) { alert("success"); },
              error   : function (jqXHR, textStatus, errorThrown) {alert("ERROR"); }  

    });

 });

0 个答案:

没有答案
相关问题