Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/430.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在没有ajax调用的情况下捕获form.submit的响应_Javascript_Jquery_Ajax_Web Services - Fatal编程技术网

Javascript 如何在没有ajax调用的情况下捕获form.submit的响应

Javascript 如何在没有ajax调用的情况下捕获form.submit的响应,javascript,jquery,ajax,web-services,Javascript,Jquery,Ajax,Web Services,我正在将payment 3D集成到我的phonegap javascript应用程序中,因此没有successURL和failURL,因为这是应用程序而不是网站 如果我这样做了 document.getElementById("form1").submit(); 它已成功提交表单,但我无法获得响应 如果我这样打电话 $.ajax( { type:'post', url:'https://sanalposprov.garanti.com.tr/s

我正在将payment 3D集成到我的phonegap javascript应用程序中,因此没有successURL和failURL,因为这是应用程序而不是网站

如果我这样做了

document.getElementById("form1").submit();
它已成功提交表单,但我无法获得响应

如果我这样打电话

 $.ajax( {
            type:'post',
            url:'https://sanalposprov.garanti.com.tr/servlet/gt3dengine',
            data:formData,
            processData: false,
            success:function(response) {
            .....
它给出了cors错误,因为银行服务器只接受表单post,不允许ajax调用


我该怎么办

如果站点不允许CORS,您可能会被限制在您调用的服务器上创建一个代理终结点,该终结点从服务器向辅助站点执行web请求,并将您想要的响应返回给客户端。您能否给出所看到的确切CORS错误消息?