|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
picture uploading
hi,
I have a form for uploading picture.As soon as the user selects a picture and clicks the submit button,I want to show a gif picture indicating that uploading is taking place.The picture should start uploading only after displaying the gif picture.Any suggestions. |
|
#2
|
||||
|
||||
|
RE: picture uploading
Okay, so first put this to the place where you want your image to appear:
<div id="loadpic"></div> Then your submit button should have the following code: <INPUT type="submit" name="submit" onClick="loadpic.innerHTML='img src=loading.gif';"> |
|
#3
|
|||
|
|||
|
RE: picture uploading
Well I had to use the code
<input type="submit" name="Submit" value="Upload" onClick="loadpic.document.body.innerHTML='<img src=imgs/up.gif>';"> Then only then gif shows up.But then the problem is the form never gets submitted |
|
#4
|
||||
|
||||
|
RE: picture uploading
Well I think you could use somthing like document.formname.submit
Not sure though. |
|
#5
|
|||
|
|||
|
RE: picture uploading
In your <form> tag use:
Code:
<form ... onsubmit="loadpic.document.body.innerHTML='<img src=imgs/up.gif>';return true;"> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > picture uploading |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|