简体   繁体   中英

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: 
        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. Anyone knows how to fix it?

instead of

myForm.request(...);

try

Form.request(myForm, ...);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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