簡體   English   中英

Ajax跨域

[英]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)&amp;method=post&amp;postdata=(sequence_input=&amp;sequence_file=target.seq&amp;informat=fas&amp;submitform=Submit%2Bjob&amp;hhpred_dbs%5B%5D=%2Fcluster%2Ftoolkit%2Fproduction%2Fdatabases%2Fhhpred%2Fnew_dbs%2Fpdb70_6Jun13&amp;genomes_first=true&amp;prefilter=hhblits&amp;maxhhblitsit=3&amp;ss_scoring=2&amp;alignmode=local&amp;more_options_on=false&amp;Ehhblitsval=1E-3&amp;cov_min=20&amp;qid_min=0&amp;mact=0.3&amp;compbiascorr=1&amp;maxseq=1&amp;width=80&amp;Pmin=20&amp;maxlines=100&amp;jobid=&amp;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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM