<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi Paul<BR>
&nbsp;<BR>
Hahahahaa,<BR>
If I wasn't drunked last night and didn'tmcompletely missunderstood <BR>
the problem, I believe it is very easy to get it done via javascript.<BR>
&nbsp;<BR>
As I remember (?)Tedd asked about how to disable or prevent the <BR>
client from&nbsp;uploading large pictures, suppose, not bigger than 500k.<BR>
&nbsp;<BR>
All it takes is just a little bit of imagination or creativity. I will describe<BR>
the routine not the code itself since you all know how writte one.<BR>
&nbsp;<BR>
You will need a "bypass function" for "submit".<BR>
1. get the picture file to load on the page.<BR>
2.&nbsp;use the onload event of the image object to check&nbsp;for image&nbsp;filesize. <BR>
3. compare, the actuall f-size with your max limit size, and let the "con-<BR>
ditional" decide what statement to execute.<BR>
4 That is: alert box that tells the user the file exceeds the maximum <BR>
alowed or&nbsp;submit it right away.<BR>
&nbsp;<BR>
And&nbsp;it will&nbsp;all take only a second&nbsp;for the function to complete.<BR>
&nbsp;<BR>
If I wasn't clear, please dont hesitate to ask. I might find some time to<BR>
actually write the code and post it here.<BR>
:)<BR>
Regards<BR>
&nbsp;<BR>
&nbsp;<BR>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Troy III <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; progressive art enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR><BR><BR>

<HR id=stopSpelling>
<BR>
&gt; Date: Thu, 12 Jul 2007 19:18:31 -0700<BR>&gt; To: javascript@latech.edu<BR>&gt; From: paul@juniperwebcraft.com<BR>&gt; Subject: RE: [Javascript] Resizing images client-side<BR>&gt; CC: <BR>&gt; <BR>&gt; At 7/12/2007 06:11 PM, Troy III Ajnej wrote:<BR>&gt; &gt;Why don't you simply get the filesize of the image the client is about<BR>&gt; &gt;to upload (via client script) and hit him with the message: "this file is<BR>&gt; &gt;to large\n the file must be smaller than...," etc.<BR>&gt; <BR>&gt; <BR>&gt; Hi Troy,<BR>&gt; <BR>&gt; I'd love to see your example of how this can be accomplished with JavaScript.<BR>&gt; <BR>&gt; Regards,<BR>&gt; <BR>&gt; Paul<BR>&gt; __________________________<BR>&gt; <BR>&gt; Paul Novitski<BR>&gt; Juniper Webcraft Ltd.<BR>&gt; http://juniperwebcraft.com <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Javascript mailing list<BR>&gt; Javascript@LaTech.edu<BR>&gt; https://lists.LaTech.edu/mailman/listinfo/javascript<BR><BR><br /><hr />Local listings, incredible imagery, and driving directions - all in one place! <a href='http://maps.live.com/?wip=69&FORM=MGAC01' target='_new'>Find it!</a></body>
</html>