form submit - IE access denied - same domain

前端 未结 5 1059
深忆病人
深忆病人 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:47

    I had similar HTML and jQuery code and encountered the same issue (i.e. 'Access is denied.' JavaScript error in Internet Explorer), which I managed to resolve by taking pointers from this (great) answer.

    In your instance:

    1. Change the #icon_upl

    2. In order for it to work, you'll need to make sure that your file is not hidden by setting its position to be absolute and moving it off-screen.

提交回复
热议问题