作者arrack (艾瑞克)
看板Web_Design
標題[請益] jquery的ajax 如何連向絕對網址
時間Tue Sep 16 05:24:10 2008
請益各位先進:
$(document).ready(function() {
$.ajax({
type: "POST",
url: "
https://www.esafe.com.tw/ASP3/etopm.asp",
success: function(msg){
alert( "Data Saved: " + msg );
}
});
});
會出現
Access to restricted URI denied" code: "1012
[Break on this error] xhr.open(type, s.url, s.async);
把網址改成本機的檔案的時候,就OK
是我哪一個步驟錯了嗎??
--
Best Regards,
Arrack Tseng
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.64.102.253
→ bcse:Ajax為了安全性而限制只能同網域內呼叫 09/16 05:57
→ arrack:無解嗎? 09/16 06:25
→ KC73:esafe .. 保重! 09/16 07:13
推 aquarianboy:jQuery的JSONP可能可以cross-domain的post 09/16 09:09
→ aquarianboy:不過,看來你是要串金流...建議還是用該廠商的規格囉 09/16 09:09
→ KC73:你可能得check一下manual,跳到那個網址之後,還要輸入信用卡等 09/16 16:20
→ KC73:資料,等一大堆流程過後,才會有傳回值. 09/16 16:21