Ken
If anyone knows any different please post!
as long as most people know where they stand they will be sensible about the button clicking
Im not so sure about teh perl, though Im playing with something called ASPsmartupload and using a frontpage extension (believe it or not) for the same process, it even has the option of a confirmation page...wow frontpage :)
thanks,
Ken
<input type="submit" value="Upload"><onClick="scrollit(100)">
"scrollit" being the name of the javascript, which I pasted into the html just after the body tag. That was the upload button at the bottom of the page. Then I tried it in the ACTION event code, towards the top in the html:
<form enctype="multipart/form-data" action="$GalleryCgi" method="POST" name="FORM"> <input type="hidden"
name="func" value="upload"><onClick="scrollit(100)">
Maybe there's a better forum for getting beginner's help on javascript, I hope I'm not out of line here. But I've looked at many upload scripts, most all have the same problem--lack of upload feedback , and I thought this would be of general interest.
I've seen one script that has a really neat feedback scheme--it's a php script called "Gallery", and when uploading images, you get a little popup window with little graphic arrows moving from one computer to another. Maybe I'll get that to work someday.
Anyway, if someone can correct my syntax, I'd appreciate it.
thanks,
Ken
No Java will help agaist stupidity. And what if I have Java turned off??? Did you ever consider that many people have it off?
In my opinion program should not depend on OS and/or client resources! Why should your visitors care about your programming preferenses? Java - no Java it should work 100%!
I have no problem on my sites where I let people upload files 2Mb in sizes (images) and then I resize them to the Web viewable format with all kind of error checking (and correcting on-the-fly).
Visitors can click on the "Submit" button to death and there will be no harm to the system or server programs. I use cgi-lib.pl for uploading and other things and it works great! It gives all the variables I need (file name, MIME type) and it has no bugs I can complain about.
Well, that's just my thought :-))
Regards.
Mark.
HTH,
Dw