SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old July 14th, 2003, 09:24 AM
mathewvp mathewvp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 143 mathewvp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.

Reply With Quote
  #2  
Old July 14th, 2003, 09:55 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is online now
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10700 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 46 m 35 sec
Reputation Power: 4
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';">

Reply With Quote
  #3  
Old July 14th, 2003, 11:37 AM
mathewvp mathewvp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 143 mathewvp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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

Reply With Quote
  #4  
Old July 14th, 2003, 12:01 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is online now
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10700 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 46 m 35 sec
Reputation Power: 4
RE: picture uploading

Well I think you could use somthing like document.formname.submit

Not sure though.

Reply With Quote
  #5  
Old July 14th, 2003, 03:39 PM
mugane mugane is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Charlottesville, VA USA
Posts: 425 mugane User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mugane Send a message via Yahoo to mugane
RE: picture uploading

In your <form> tag use:
Code:
<form ... onsubmit="loadpic.document.body.innerHTML='<img src=imgs/up.gif>';return true;">
and leave the submit button devoid of javascript action(s).

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > picture uploading


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway