I know Js but I dont know it well enough to actually sit and code with out help yet... 1. Is there away using JS to an images dimensions before the upload? as I need to validate the image dimensions for images before the actual upload begins as it would save the user a lot of time. 2. How do I create a JS feature that will watch for when a form is submitted? - for example I want to load a loading image into the page when the form is submitted. Any help is appreciated!
1. not via js but there are flash-helpers that worth WITH javascript that do allow for verification. one such is http://digitarald.de/project/fancyupload/ - Fancy Upload (through mootools framework). look for other 'flash uploaders'. there was also talk on improving file uploads through html5 but I am not sure how far along that got, plus allowing a user to check file sizes or dimensions through pure javascript will be too much of a security risk. 2. yes. basically through vanilla js you handle the submit event. eg. document.getElementById("formid").onsubmit = function(e) { // create a new image element and do something alert("doing something"); }; Code (javascript): example that works: http://www.jsfiddle.net/KpsbT/1/ i'd recommend using a framework though