html file upload as part of another form

Posted by samsina on Stack Overflow See other posts from Stack Overflow or by samsina
Published on 2009-08-29T00:29:27Z Indexed on 2010/03/16 20:01 UTC
Read the original article Hit count: 152

Filed under:
|
|

Idealy I would like to have the following:

<form1 ...>

    ...

     <form2 ...>

         //This form uploads a file using AJAX and writes the content into a text field below.

     </form2>

     <input type="text"/>

</form1>

Firefox handles this but IE likes to follow the rules of W3C this time and it doesn't really work.

So now I have to handle form2 outside of form1 through javascript. Can you provide some help about how to go about this?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about AJAX