upload file without refresh page

F

finecur

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
 
R

Randy Webb

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.
 
A

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
 
M

Mister Joe

finecur a écrit :




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

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?
 
L

Larry Marburger

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top