473,414 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Ajax File Upload

Hey guys , am just getting into the AJAX scene and am a noob.
I am really worried about Ajax upload , cant figure it out.

I have a basic html form , like this

[HTML]<form action="upload.php" method="POST" ENCTYPE="multipart/form-data">
*<input type="text" name="name" value="Nick/Name"/><br/><input type="password" name="pass" value="password"/><br/>
<textarea rows="5" cols="15" value="comments" name="comments"/><br/><input type="file" name="file"/><br/><input type="hidden" name="upload"/><input type="submit" value="Send File" name="submit"/></form>
[/HTML]
This form uploads a given file to the server where upload.php is located,

I need to convert this to ajax ,
like I need to send those information and file to the server with Ajax method ,
so that I can show the progress of my file , success message and reset (which resets the form so that one can upload a new file again).

Please help me with these.
Remember:
1. Information must be sent with the file to the server
2. Progress bar is needed
3. Success message is needed
4. Reset form option is needed so that one can upload again


THIS IS VERY URGENT , AM NOT ABLE TO FIGURE OUT , PLEASE HELP ME. THANKS.
Oct 16 '07 #1
1 2009
acoder
16,027 Expert Mod 8TB
Please use code tags when posting code:
[CODE=javascript]
Your JavaScript code here...
[/code]

Removed "help urgently needed" from the title which (believe it or not) makes the problem less urgent in other people's eyes and less likely to be answered.

Finally, to your problem. See this earlier thread. You'll need to use an iframe for this which will allow you to upload a file without refreshing/reloading/unloading the entire page.
Oct 16 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: JMB | last post by:
Hello, I was wondering if anyone knew of any projects extending the inline upload progress bar to utilize an inpage image uploader with bar, without having to refresh or go to a seperate page,...
3
by: Senthil | last post by:
Hi all I'm new in ajax. How to upload a image using ajax..
3
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
3
by: Ken1 | last post by:
Hello, Does anyone know of an easy to implement ajax upload script for php which also has a progress bar. If possible I'd like it to be able to remove already uploaded files and do minor...
3
by: dreamznatcher | last post by:
Hello, I found a script here: http://www.webtoolkit.info/ajax-file-upload.html which supposedly allows you to upload files using AJAX (I'm not an expert). The site claims it's the best way to...
1
by: bsprogs | last post by:
I am currnetly programming a file hosting website in PHP and I am slowly integrating AJAX into the website. Here is my problem: The user uploads the file. The server processes the file and...
3
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need ...
1
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need ...
11
by: kj | last post by:
I would like to convert a form that currently uses the traditional CGI sequence (i.e. the action associated with the form sends a POST request to a server-side CGI script) to one that uses AJAX to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.