I am trying to submit a form with a file attached using an iframe (via AJAX). I use rails and remotipart gem. in fact, I also tried the jquery.form.js library, but no luck. when I submit the form, I get "SCRIPT5: access denied" only in IE9, and when I get redirected to the page from my gmail account. It works fine when I go to my site and submit the form with the attached file, but it does not work when I go to the site using the link from gmail (for other letters it works). I checked how this works - it creates a hidden iframe set form.target = iframe.name (iframe name) and iframe.src = javascript: false; When the form is submitted, it throws an exception = "SCRIPT5: access denied". I tried to set iframe.domain = my siteโs domain, but it didnโt work - iframe = $ (""); btw, I submit the form to the same domain
Has anyone solved this problem?
Dzmitry
source share