I know i have saw a piece of code before that you could select an image on your hard drive and with js it would fill in 2 text boxed one with height and one with width. does anyone know where i can find code like this?
dayve: My java is not very good but it looks like it is reading the file and posting the sizes in an alert function upon page load, but what I am not sure of is if this is also resizing the file upon presentation?
the code merely displays the width and height of the original image. I also added an example for how one could restrict the size of the image by using the these values. you can not actually resize/resmaple the original image without a server side component.
ok well i did get the above to work in a test.html file but when trying to add it to my site im getting problems. I dont know what the problem is and I dont know JS 2 well. img=new Image (); this sets a new image? img.src= document.ImageUpload.FILE1.value why cant i specify the image i want to set the pic like document.PREVIEWPIC.src
like i said i really dont know anything about JS i dont know what i need to post or show you, any help would be GREAT.