{"action":"created","issue":{"url":"https://api.github.com/repos/ProgerXP/FileDrop/issues/37","labels_url":"https://api.github.com/repos/ProgerXP/FileDrop/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/ProgerXP/FileDrop/issues/37/comments","events_url":"https://api.github.com/repos/ProgerXP/FileDrop/issues/37/events","html_url":"https://github.com/ProgerXP/FileDrop/issues/37","id":53963022,"number":37,"title":"Iframe callback is not run in IE9","user":{"login":"oytuntez","id":656635,"avatar_url":"https://avatars.githubusercontent.com/u/656635?v=3","gravatar_id":"","url":"https://api.github.com/users/oytuntez","html_url":"https://github.com/oytuntez","followers_url":"https://api.github.com/users/oytuntez/followers","following_url":"https://api.github.com/users/oytuntez/following{/other_user}","gists_url":"https://api.github.com/users/oytuntez/gists{/gist_id}","starred_url":"https://api.github.com/users/oytuntez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oytuntez/subscriptions","organizations_url":"https://api.github.com/users/oytuntez/orgs","repos_url":"https://api.github.com/users/oytuntez/repos","events_url":"https://api.github.com/users/oytuntez/events{/privacy}","received_events_url":"https://api.github.com/users/oytuntez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-10T16:28:04Z","updated_at":"2015-01-14T21:23:17Z","closed_at":null,"body":"1) Demo page does not work on IE9, because the callback script is not run. When you run the callback yourself (`window.top.fd_1234` type of calls) by copying from the server response, it works well. \r\n\r\nI have been dealing with this problem since yesterday, the problem is:\r\n\r\n2) This specific iFrame does not have `top` or `parent` context. The iFrame created thinks it is a standalone frame and does not have a parent window, nor has a frameElement. So `fd_1234` is `undefined` because `window.top = window` and `window.parent = window`, right side being the iFrame's own `window` context.\r\n\r\nI encountered the problem on IE9 so far, modern browsers seem to be working fine when `options.iframe.force = true`. I still couldn't come up with a solution, but it already cost me hours and hours... \r\n\r\nAny ideas?\r\n\r\nOne possible explanation may be: http://msdn.microsoft.com/en-us/library/gg622929(v=vs.85).aspx\r\nHow I reached the MSDN article: http://stackoverflow.com/questions/5514973/javascript-code-in-iframes-in-ie9-not-working"},"comment":{"url":"https://api.github.com/repos/ProgerXP/FileDrop/issues/comments/69994514","html_url":"https://github.com/ProgerXP/FileDrop/issues/37#issuecomment-69994514","issue_url":"https://api.github.com/repos/ProgerXP/FileDrop/issues/37","id":69994514,"user":{"login":"ProgerXP","id":1643195,"avatar_url":"https://avatars.githubusercontent.com/u/1643195?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgerXP","html_url":"https://github.com/ProgerXP","followers_url":"https://api.github.com/users/ProgerXP/followers","following_url":"https://api.github.com/users/ProgerXP/following{/other_user}","gists_url":"https://api.github.com/users/ProgerXP/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgerXP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgerXP/subscriptions","organizations_url":"https://api.github.com/users/ProgerXP/orgs","repos_url":"https://api.github.com/users/ProgerXP/repos","events_url":"https://api.github.com/users/ProgerXP/events{/privacy}","received_events_url":"https://api.github.com/users/ProgerXP/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T21:23:17Z","updated_at":"2015-01-14T21:23:17Z","body":"> I got a few visitors yesterday with IE8 in Arabic locale. My inbox was alarming with IE8-related error reports :)\r\n\r\nYou're kidding, what OS do they use? Vista? I don't want to believe it :(\r\n\r\n> resetForm method does exactly this :) \r\n\r\nProblem is that if you remove this method or set `recreateInput` to false you're preventing user from uploading the same file twice in a row. \r\n\r\nArgh, IE has been driving me crazy and with v2 I was sure I have got rid of all of it quirks. Anyway, I might be willing to look into it some time later. How did you obtain IE9? Are you using Vista (on a VM of course)? The entire setup is going to be very fancy."}}