简体   繁体   English

在Internet Explorer 8上使用原型请求表单时出现问题

[英]Problem when requesting a form using prototype on internet explorer 8

I'm trying to make a request using prototype 1.6.1 on ie 8, the following code works on Firefox: 我正在尝试使用原型1.6.1(即8)发出请求,以下代码在Firefox上有效:

var myForm = document.forms[0];
myForm.request({


onSuccess: 
        function(transport) {
            var url = getPath() + nomeAcao+'?modulo='+modulo;
            window.location = url;
        }
});

When debugging, i get an error on the "myForm.request" line, it says i can't call this method on this object. 调试时,在“ myForm.request”行上出现错误,它说我无法在此对象上调用此方法。 Anyone knows how to fix it? 有人知道如何解决吗?

instead of 代替

myForm.request(...);

try 尝试

Form.request(myForm, ...);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM