4

I don't have any control on the server side.. is it possible to upload and load the results given by the remote server in an Iframe ? please share some code.. Thanks

Vamsi Krishna B
  • 11,377
  • 15
  • 68
  • 94

1 Answers1

8

Declare the iframe with a name and target that name in your form element:

<form action="http://url.to.server" enctype="multipart/form-data" target="resultsFrame">
    <input type="file" />
    ...
</form>

<iframe src="blank.html" name="resultsFrame"></iframe>
Kirk Woll
  • 76,112
  • 22
  • 180
  • 195