Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: AsyncFileUpload IE9 access is denied javascript error [26961]

$
0
0
Hi,
Been battling this for a couple days now. Here's the scenario...
I have a "fake" upload button that when clicked, will invoke the click() event on the Asyncfileupload control (latest may release) which is hidden. Well, not entirely hidden, just moved off the page with absolute positioning.

It works fine and uploads the file in latest chrome and firefox 5. When it comes to IE9, I can browse and select the file but then while uploading, it throws a javascript error in the console window....

SCRIPT5: Access is denied.

SearchStart.aspx?_TSM_HiddenField_=ToolkitScriptManager1_HiddenField&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d4.1.50401.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a5da0a7c3-4bf6-4d4c-b5d5-f0137ca3a302%3ade1feab2%3af9cec9bc%3ae4bd8421, line 12 character 6725

when i dig deeper into the error it comes up on this line here:

setTimeout(function(){c.submit();g._waitTimer=setTimeout(function(){g._wait()},100)},0);

Again... this control works fine in all the other browsers... Has anyone managed to get around this issue for IE?



Comments: Nah mate... never found a solution to this. I was limited on time and wasted loads of it trying to fix this issue. Eventually I removed this control (and the rest of ajax control toolkit) completely and went for an alternative solution. If memory serves me correctly, this one creates an iframe on the fly which is where the postback is happening but once again IE had some security issues with how the iframe content is accessed via the toolkit script manager. Haven't tried with latest version but if you're having issues then obviously it hasn't been fixed. Don't waste anymore time on it and look for an alternative solution. I could be wrong but I don't think the ajax control toolkit it being developed much anymore due to jQuery taking over the landscape. I went for this solution in the end: http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ but this page details a few other alternatives. http://www.webdeveloperjuice.com/2010/02/13/7-trusted-ajax-file-upload-plugins-using-jquery/ Good luck!

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>