Tuesday 11 February 2014

Upload and display an image without a page refresh using Javascript and PHP


Upload and display an image Here Iam explain about how to upload an image without a page refresh using an iframe and some javascript.
Bunch of jquery plugins that do this, but you’ll see here that there is nothing really complicated about it and it can easily be achieved with a couple of javascript lines.

The trick to avoid this full page refresh is to use a ‘target’ attribute on the form and have it point to an iframe. As the submit button is clicked, the browser will load up the response in the targeted iframe without refreshing the whole page.