-4
助けてください!! new Ajax.Request
はデバッグに基づいて認識されていないようです... は推奨されているものの一部をオンラインで試してみました... cache=false
ありがとう!ajaxは動作していませんが、クロムはIEでうまく動作しています
if (init) {
init = false;
param = "init=" + true;
param = encodeURI(param.replace(/^\s+|\s+$/g, ''));
setLastRequestTimestamp(); //ryan's trial
new Ajax.Request("downstocking_apply_async.do", {
onSuccess: function(transport) {
if (!isHangingRequest()) {
alert("initUpdateScanArea");
initUpdateScanArea(transport.responseText);
setLastRequestTimestamp();
} else {
if (signalOnScan() == 1) {
alert("<fmt:message key="
message.signal_scan_off " bundle="
$ {
application
}
"/>");
return;
}
alert("<fmt:message key="
message.signal_downstock_suspend " bundle="
$ {
application
}
"/>");
doSuspend();
}
},
onFailure: function(transport) {
if (!isHangingRequest()) {
document.downstockingForm.action = "downstocking_apply_async.do?" + param;
if (signalOnScan() == 1) {
alert("<fmt:message key="
message.signal_scan_off " bundle="
$ {
application
}
"/>");
return;
}
setLastRequestTimestamp();
document.downstockingForm.submit();
} else {
if (signalOnScan() == 1) {
alert("message");
return;
}
alert("message");
doSuspend();
}
},
parameters: param,
asynchronous: "true"
});
}
正確にどのようなエラーが表示されますか? –
'new Ajax.Request'が認識されない場合、おそらくprototype.jsの読み込み方法に問題があります。 – Barmar
これをページに追加してprototype.js(最新1.7.3)を読み込みました。 – jpogs