Massimo,

Try as I might, I can't get your script to work. I've gone through
replacing hard carriage returns with spaces where they should be (the
message got wrapped), but it's not working, and not throwing any errors
with IE5.5.

Any chance you could put up a sample form live on the web where we could
see it work? Or send it to me w/o linewraps off-list: [EMAIL PROTECTED]?

Thanks,
Ron

> -----Original Message-----
> From: Massimo Foti [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 25, 2001 3:32 PM
> To: CF-Talk
> Subject: Re: Checking file size before upload.
>
>
> "Jon Hall" <[EMAIL PROTECTED]> wrote in message
> news:016501c15d87$53a9a740
> > I dont think it is possible with javascript. In order for
> this to be true,
> > either the script would need access to the local filesystem,
> which it does
> > not...or the browser would store the filesize of the selected file
> somewhere
> > accessible in the dom. That would be a very cool thing for
> the browser's
> to
> > do, but I have never heard of this, so I very much doubt that is true
> > either.
>
> It's feasible, even if it's quite an hack. It works only on IE
> and NN 6, no
> NN 4. It doesn't works on the Mac either (but fails silentely in both
> cases). I made a Dreamweaver behavior for this, below is a
> sample code, hope
> OE will not do bad things with it:
>
> <html>
> <head>
> <title>Check File Upload</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <script language="JavaScript">
<big snip>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to