am working on a internet speed test project for my company, i finished the download speed test part with the "onload" function, now am thinking in a way to test the upload speed like generating binary code on the customer side and send it to the server, so if you have any other idea or if you can help with the generating idea i'll be very thankful.
here is the code
> <script type="text/javascript">
> beforeload = (new Date()).getTime();
> //i tried alot of things here but non is working
> $.post( "file",
> function(data){ afterload = (new
> Date()).getTime(); secondes =
> (afterload-beforeload)/1000;
> loadspeed = (513/secondes);
> document.write("your download speed is
> " + Math.floor(loadspeed) + " kb per
> second"); }); </script> </body>
> </html>
thank you every one