Connecting Tech Pros Worldwide Help | Site Map

upload file without refresh page

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 1st, 2007, 11:45 PM
finecur
Guest
 
Posts: n/a
Default 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


  #2  
Old March 2nd, 2007, 12:35 AM
Randy Webb
Guest
 
Posts: n/a
Default 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/
  #3  
Old March 2nd, 2007, 01:35 AM
ASM
Guest
 
Posts: n/a
Default 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
  #4  
Old March 2nd, 2007, 01:55 PM
Mister Joe
Guest
 
Posts: n/a
Default 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?

  #5  
Old March 2nd, 2007, 03:25 PM
Larry Marburger
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.