Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7901345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:11:47+00:00 2026-06-03T09:11:47+00:00

i have a form thats inside a iframe with a input type file with

  • 0

i have a form thats inside a iframe with a input type file with an onchange event that submits the form whenever the input is modified, then i get a error in IE only works in other browsers.

e.g. (simplified version)

<form id="form1">
<input type="file" id="_file" onchange="document.forms[0].submit();$('#form1').hide()" />
<input type="button" onclick="$('#_file').click();" />
</form>

then IE 8 gives this error:

SCRIPT5: Access is denied.

I beleive it as to do with the fact that IE thinks its a security risk to submit from a event that wasn’t fired by a user or it may have to do with the fact that it happens in an iframe. Any ideas on how to get around this ?

EDIT

It looks like the problem may have to do with the fact that the input[type:file] is hidden, well its got a small width and opacity:0 . after making it show and putting a submit button there it works , but i need it to work without the input[type:file] showing and without a submit button. However tried it with the input[type:file] showing and submiting in the onchange still doesn’t work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:11:48+00:00Added an answer on June 3, 2026 at 9:11 am

    Seems the problem is IE doesn’t like it when you programtically set and submit file inputs. Found now way around this so giving up. I’m opting for using Jquery uploadify as a fallback when user is in IE. This puts an unwanted dependency on flash but thats the best alternative i can come up with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that posts to an iFrame. The website inside the iFrame
I have a form inside an iframe that needs to be manipulated from the
I have to add a textbox inside a form that is composed of a
I have a webrequest that returns a html response which has form inside with
I have a page on a website that contains a secure form inside an
I have a form inside an iframe which is inside a jQuery UI dialog
I have a simple form which is inside IFRAME. When user click on SUBMIT,
I have an iframe that displays a php page inside it when submitting a
I have an iframe on my page, and inside that iframe I execute code:
I have a page in a site that contains an iframe with a form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.