User Profile

Collapse

Profile Sidebar

Collapse
monki_sf
monki_sf
Last Activity: Mar 12 '06, 10:34 PM
Joined: Feb 23 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • monki_sf
    replied to Check file size with Javascript
    Thanks Imran - so applying this to my forms validation should look like this right?

    Code:
    <script language=javascript>
    extArray = new Array(".jpg", ".jpeg",".gif");  //".png", , ".gif"
    
    function callCancel()
    {
    	document.frmlisting.action="listing_list.php?cityid=<?=$cityid?>&c_id=<?=$c_id?>";
    	document.frmlisting.submit();
    ...
    See more | Go to post
    Last edited by monki_sf; Mar 12 '06, 10:34 PM.

    Leave a comment:


  • monki_sf
    replied to Check file size with Javascript
    Yeah - i'll be verifying on the backend using php - but seems strange that js can tell what a file type is - what the dimensions are - but not the file size.
    See more | Go to post

    Leave a comment:


  • monki_sf
    started a topic Check file size with Javascript

    Check file size with Javascript

    Was wondering if anyone knew of way to validate an images file size using javascript - i.e keeping the upload to say 500k. I've seen scripts to validate the dimensions - but nothing for the actual file size.
    See more | Go to post
No activity results to display
Show More
Working...