I am using http://www.ajax-cross-domain.com/ I have set up my local Ampps server as said on the page. Examples given on the page are running successfully.
My test.html contains:
<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> `
and ACD.js contains:
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=)'
);
in the my @allowed_uris
variable. Rest of ACD.js is same as http://www.ajax-cross-domain.com/ACD-source.txt
I want to submit this form http://toolkit.tuebingen.mpg.de/hhpred and get data with AJAX. It is giving 500 Internal Error
.
Can anybody explain how to do it?
In test.html
src="http://www.ajax-cross-domain.com/cgi-bin/ACD/ACD.js?...
needs to be changed to
src="cgi-bin/ACD/ACD.js?...
'Twas easy, but hidden :)