开发者

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:

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜