•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,412 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,459 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 792 | Replies: 0 | Solved
hello i am trying to get uploaded to a server using a hidden iframe so the page does not reload.
i have a upload.php page which resizes the file and remanes the file. What i thiink should happen is that the php file should be in the iframe and the submit button directs the information to this page. without the page reloading. the code i have keeps reloading the page which is not good.
the code i am using for the form is here
<form action="" enctype="multipart/form-data" method="post" target="target_upload">
<iframe id='target_upload' name='target_upload' src='upload.php' style='width:1px;height:1px;border:0'></iframe><input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<label>Select File: </label>
<div>
<input id="upload" name="upload" size="30" type="file">
<input type="submit" value="Upload File">
</form>
can anyone show me where i have gone wrong because this code keeps reloadiing my page which is not what is meant to happen.
i have a upload.php page which resizes the file and remanes the file. What i thiink should happen is that the php file should be in the iframe and the submit button directs the information to this page. without the page reloading. the code i have keeps reloading the page which is not good.
the code i am using for the form is here
<form action="" enctype="multipart/form-data" method="post" target="target_upload">
<iframe id='target_upload' name='target_upload' src='upload.php' style='width:1px;height:1px;border:0'></iframe><input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<label>Select File: </label>
<div>
<input id="upload" name="upload" size="30" type="file">
<input type="submit" value="Upload File">
</form>
can anyone show me where i have gone wrong because this code keeps reloadiing my page which is not what is meant to happen.
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: AJAX Update Panel for GridView in ASP.NET2.0
- Next Thread: Select all the items in a listbox right before submit.



Threaded Mode