0

I have an IE specific problem. It happens in the latest version of IE as well as former versions. I have an input file inside a form. Now, that form, is not the form which this input belongs to because I'm using a different form (attached to the body) as the form for the input file so I could send it. I set the "form" attribute for that input. I don't see the file being sent. The content-Length is small (49). I compared it to chrom or FF and it works fine. I'm getting that specific form in my JS code and then submitting it.

Has anybody encountered this situation? It seems that even though I'm setting the form id to the input, it doesn't work.

10
  • "latest version of IE" So IE11 running in IE11 mode? Commented Apr 27, 2015 at 14:15
  • I edited the post - IE11 and below Commented Apr 27, 2015 at 14:16
  • IE doesn't support the form attribute yet. Commented Apr 27, 2015 at 14:19
  • stackoverflow.com/questions/26380551/… Commented Apr 27, 2015 at 14:21
  • 2
    @OddDev Did you not read I set the "form" attribute? I sure hope IE supports the form tag. :) Commented Apr 27, 2015 at 14:36

1 Answer 1

1

The form attribute does not work in IE http://www.w3schools.com/htmL/html_form_attributes.asp What you can do is "wrap" your inputs with the form to have a cross-browser solution. If your inputs are scattered this won't work thought so you must attach the form in an upper level of the document hierarchy.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.