Javascript ajax和chrome不起作用,但在IE中运行良好

Javascript ajax和chrome不起作用,但在IE中运行良好,javascript,ajax,google-chrome,internet-explorer,prototypejs,Javascript,Ajax,Google Chrome,Internet Explorer,Prototypejs,需要帮助!!。。似乎是新的Ajax。根据调试,请求无法识别。。。。 联机尝试了一些建议,但不起作用..cache=false等。。。 谢谢 找到解决方案…导入的自定义js库与prototype js产生混淆 已删除自定义库,它现在可以工作。。。谢谢 你到底看到了什么错误?如果新的Ajax.Request没有被识别,那么你加载prototype.js的方式可能有问题。在页面中添加了这个来加载prototype.js最新的1.7.3 Jordan s..没有收到任何错误,但它没有显示response

需要帮助!!。。似乎是新的Ajax。根据调试,请求无法识别。。。。 联机尝试了一些建议,但不起作用..cache=false等。。。 谢谢


找到解决方案…导入的自定义js库与prototype js产生混淆
已删除自定义库,它现在可以工作。。。谢谢

你到底看到了什么错误?如果新的Ajax.Request没有被识别,那么你加载prototype.js的方式可能有问题。在页面中添加了这个来加载prototype.js最新的1.7.3 Jordan s..没有收到任何错误,但它没有显示responseText。。。
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"
    });
}