form submit - IE access denied - same domain

前端 未结 5 1063
深忆病人
深忆病人 2020-12-17 15:35
SCRIPT5: Access denied 
jquery.min.js, line 3 char 3769

I\'m getting this error by simple form submit only in IE

 $(\"#icon_upl\").         


        
5条回答
  •  天涯浪人
    2020-12-17 15:41

    i have found an other way to do this ... I have make test and i found it work after 2 or 3 click on the submit button.

    i have try some solution but found this by my self. this is only for ie.

    note i dont use the jquery submit method because they handle the error.

    function Submit() {
        try {
            $('#FormName')[0].submit();
        } catch (e) {
            setTimeout(function () { Submit(); }, 50);
        }
    }
    

    ps. sorry for my bad english, this is not my first language.

提交回复
热议问题