Connecting Tech Pros Worldwide Forums | Help | Site Map

upload file without refresh page

finecur
Guest
 
Posts: n/a
#1: Mar 2 '07
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


Randy Webb
Guest
 
Posts: n/a
#2: Mar 2 '07

re: upload file without refresh page


finecur said the following on 3/1/2007 7:32 PM:
Quote:
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/
ASM
Guest
 
Posts: n/a
#3: Mar 2 '07

re: upload file without refresh page


finecur a écrit :
Quote:
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
Mister Joe
Guest
 
Posts: n/a
#4: Mar 2 '07

re: upload file without refresh page


On Mar 1, 9:25 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Quote:
finecur a écrit :
>
Quote:
I can upload files with
>
Quote:
<form action=...>
<input type=file...>
</form>
>
Quote:
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?

Larry Marburger
Guest
 
Posts: n/a
#5: Mar 2 '07

re: upload file without refresh page


On Mar 2, 9:48 am, "Mister Joe" <mrjoefri...@gmail.comwrote:
Quote:
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

Closed Thread