「お待ちください」スクリプトを探している他の人のために-これは優れた出発点になります:
http://www.aleixcortadellas.com/main/2009/02/15/automatically-query-mysql-and-output-results-with-ajax/
私がしなければならなかったのは交換することだけでした
document.getElementById(divid).innerHTML=xmlHttp.responseText;
と:
switch(xmlHttp.responseText)
{
case '0':
document.getElementById(divid).innerHTML='<img src="wait.gif" />';
break;
case '1':
location.href="http://www.google.com";
break;
case '-1':
document.getElementById(divid).innerHTML='ERROR: Your transaction failed, please contact us';
break;
}
そして、boo.phpで
IPNステータス列にクエリを実行させました。
これが他の誰かに役立つことを願っています。