Form action not getting set correctly in IE7 when using the form plugin to do a file upload

Form action not getting set correctly in IE7 when using the form plugin to do a file upload

Hi,
I am using the jquery.form.js plugin's ajaxSubmit method and it works great for FF and IE8.  It is not working for IE7.  I'm relatively new to jQuery and javascript as well as posting so my apologies if my etiquette or explanation is poor.

I have a JSP page which uploads a file via a file input element.  When the user clicks submit, an ajax call is made to a controller, which does some validation on the file data being uploaded.  If OK, then a json response is returned and the JSP page then automatically submits the form.

For IE7, the form action is not getting set correctly to the URL (for the controller) specified in the ajax options when the ajax request is made.  In the plugin, this is on line 258:

            if (form.getAttribute('action') != s.url) {
                form.setAttribute('action', s.url);
            }


I debugged through and the "setAttribute" is not working despite the s.url value being correct.  Is there a reason why "setAttribute" wouldn't work in IE7 for the form action but it does work for FF and IE8?  Any help would be greatly appreciated.

Thanks,
J