473,387 Members | 1,573 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,387 software developers and data experts.

upload file without refresh page

I can upload files with

<form action=...>
<input type=file...>
</form>

Suppose I do not want to refersh my page. Then how can I upload file
without call the form's action or refresh my html page?

Thanks,

ff

Mar 2 '07 #1
4 4804
finecur said the following on 3/1/2007 7:32 PM:
I can upload files with

<form action=...>
<input type=file...>
</form>

Suppose I do not want to refersh my page. Then how can I upload file
without call the form's action or refresh my html page?
Submit it to a hidden IFrame by giving the form a target attribute.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 2 '07 #2
ASM
finecur a écrit :
I can upload files with

<form action=...>
<input type=file...>
</form>

Suppose I do not want to refersh my page. Then how can I upload file
without call the form's action or refresh my html page?
of course user will have to submit !

<form target="lost" blah >

</form>
<iframe name="lost" width=1 height=1></iframe>
But ... will user understand something has happened ?
How much time he'l can send same file ?
without refreshing or emptying the file-field

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Mar 2 '07 #3
On Mar 1, 9:25 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
finecur a écrit :
I can upload files with
<form action=...>
<input type=file...>
</form>
Suppose I do not want to refersh my page. Then how can I upload file
without call the form's action or refresh my html page?

of course user will have to submit !

<form target="lost" blah >

</form>
<iframe name="lost" width=1 height=1></iframe>

But ... will user understand something has happened ?
How much time he'l can send same file ?
without refreshing or emptying the file-field

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
As long as you show some kind of status image or message to the user
while the image is uploading as well as a process complete method they
will know what is going on. If you're slightly lost or want a ready
made way of doing this look at the yui connection manager. Just out of
curiosity does anyone know what the best way for him to show what
percent of the upload has been completed?

Mar 2 '07 #4
On Mar 2, 9:48 am, "Mister Joe" <mrjoefri...@gmail.comwrote:
Just out of curiosity does anyone know what the best way for him to
show what percent of the upload has been completed?
That will require an extra piece on the server to accomplish. In
our .NET environment we use SlickUpload: http://www.assistedsolutions.com/components/SlickUpload

It does much more than just reporting back the progress of an upload,
but that's one of the nicer features. We originally used it back
in .NET 1.x to chunk uploads to the disc instead of keeping them in
memory until the upload was complete. I've been using it since that
time and have never had a problem with it. It's a very good piece of
software.

--
Larry

Mar 2 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
9
by: Bob Bedford | last post by:
I've a page where the user may enter some values and upload some pictures. Unfortunately, some pictures coming from digital camera are very big, and take a lot of time for uploading. I've...
2
by: Gary \(Girish\) | last post by:
Hello: I am using SA-FileUp to enable members to upload their product images to my ISP sever. When member uploaded a new image file, the file name is replaced with the member ID and the old file...
2
by: Tim::.. | last post by:
Can someone please tell me why I keep getting an error saying the page cannot be displayed in my ASP.NET app. If I upload a file that is under approx 3mb then it works file but as soon as I try to...
4
by: Matt Jensen | last post by:
Howdy I've got a rather strange issue occuring. I used forms based .NET authentication, although I'm also setting some session variables when people login. However, I've found when people use...
0
by: SEMIH DEMIR | last post by:
Sitelerden birinde verilen yabancý kaynakli bir scriptti duzenledim yanlýz birseyin içinden bir turlu cýkamadým iþin aslý ilk defa persistin upload componentini kullanacam yanlýz suanki haliyle...
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 ...
1
by: chennaibala | last post by:
can any one send me mutiple image upload program and save the file name with extension in mysql table.we must cheak uploaded file type like bmp or any image file while uploading. i develop...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.