开发者

JavaScript permission denied. Not cross domain?

开发者 https://www.devze.com 2022-12-30 12:47 出处:网络
I\'m working on a web app that开发者_JS百科 very rarely returns a JavaScript permission denied error when attempting to access document elements.I\'m well aware of cross-domain issues and I am activel

I'm working on a web app that开发者_JS百科 very rarely returns a JavaScript permission denied error when attempting to access document elements. I'm well aware of cross-domain issues and I am actively pursuing them as a possible cause. My question is: are there other possible causes for a permission denied exception? Just want to make sure I'm looking in to all possible avenues.

Thanks!


Usually it just occurs for cross domain calls, but IE does it for other things too. For instance, some properties and objects in the IE dom are inaccessible like document.styleSheets.rules.

http://www.dannyg.com/ref/jsminifaq.html#q15

It has also been said that assigning too long of strings to an URL will throw it:

http://javascriptfixer.com/access-is-denied.php

You can also get the error when submitting a form with an input=file if the input's value wasn't properly selected.

http://support.microsoft.com/default.aspx?scid=kb;en-us;892442

0

精彩评论

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

关注公众号