[英]Ajax Cross Domain
我正在使用http://www.ajax-cross-domain.com/ ,按照頁面上的說明設置了本地Ampps服務器。 頁面上給出的示例正在成功運行。
我的test.html包含:
<script
type="text/javascript"
src="cgi-bin/ACD/ACD.js?uri=(http://toolkit.tuebingen.mpg.de/hhpred/run/hhpred)&method=post&postdata=(sequence_input=&sequence_file=target.seq&informat=fas&submitform=Submit%2Bjob&hhpred_dbs%5B%5D=%2Fcluster%2Ftoolkit%2Fproduction%2Fdatabases%2Fhhpred%2Fnew_dbs%2Fpdb70_6Jun13&genomes_first=true&prefilter=hhblits&maxhhblitsit=3&ss_scoring=2&alignmode=local&more_options_on=false&Ehhblitsval=1E-3&cov_min=20&qid_min=0&mact=0.3&compbiascorr=1&maxseq=1&width=80&Pmin=20&maxlines=100&jobid=&mail=)">
</script>
<script type="text/javascript">
alert(ACD.responseText);
</script> `
並且ACD.js包含:
my @allowed_uris = (
'uri=(http://toolkit.tuebingen.mpg.de/hhpred/run/hhpred)&method=post&postdata=(sequence_input=&sequence_file=target.seq&informat=fas&submitform=Submit+job&hhpred_dbs%5B%5D=%2Fcluster%2Ftoolkit%2Fproduction%2Fdatabases%2Fhhpred%2Fnew_dbs%2Fpdb70_6Jun13&genomes_first=true&prefilter=hhblits&maxhhblitsit=3&ss_scoring=2&alignmode=local&more_options_on=false&Ehhblitsval=1E-3&cov_min=20&qid_min=0&mact=0.3&compbiascorr=1&maxseq=1&width=80&Pmin=20&maxlines=100&jobid=&mail=)'
);
在my @allowed_uris
變量中。 ACD.js的其余部分與http://www.ajax-cross-domain.com/ACD-source.txt相同
我想提交此表格http://toolkit.tuebingen.mpg.de/hhpred並使用AJAX獲取數據。 它給出500 Internal Error
。
有人可以解釋如何做嗎?
在test.html中
src="http://www.ajax-cross-domain.com/cgi-bin/ACD/ACD.js?...
需要更改為
src="cgi-bin/ACD/ACD.js?...
``很容易,但是隱藏了:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.