开发者

Problem when requesting a form using prototype on internet explorer 8

开发者 https://www.devze.com 2023-01-10 10:33 出处:网络
I\'m trying to make a request using prototype 1.6.1 on ie 8, the following code works on Firefox: var myForm = document.forms[0];

I'm trying to make a request using prototype 1.6.1 on ie 8, the following code works on Firefox:

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


onSuccess: 
        funct开发者_开发问答ion(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. Anyone knows how to fix it?


instead of

myForm.request(...);

try

Form.request(myForm, ...);
0

精彩评论

暂无评论...
验证码 换一张
取 消