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:
  #1  
Old April 26th, 2005, 05:08 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
image type validation

i have a upload form and i would like to validate to see if the file is an image or not. Is there something I can add to this that would do the trick? I wonly want jpegs.

function validateSignup(frm) {

if (frm.UserName.value == '') {
alert("You must enter your UserName.");
frm.UserName.focus();
return false;
}

}

Reply With Quote
  #2  
Old April 26th, 2005, 06:42 PM
trippleweb's Avatar
trippleweb trippleweb is offline
Contributing User
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Victoria, BC, Canada
Posts: 702 trippleweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 25 m 54 sec
Reputation Power: 2
RE: image type validation

http://codewalkers.com/tutorials/35/1.html

Reply With Quote
  #3  
Old April 27th, 2005, 05:59 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: image type validation

thanks for the reply but i can not see how that would help me as i would like to do this client side via javascript. I have this witch will tell me if an image has been selected or not but would also like just jpegs.

function validateSignup(frm) {

if (frm.Image.value == '') {
alert("You must select a Image.");
frm.Image.focus();
return false;
}

Anyone know of if this can be done?

}

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > image type validation


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 1 hosted by Hostway