Przyjlad:
Musze pobrac wymiary obrazu na serwerze.
Interesuje mnie tylko rozwiazanie js.
<!doctype html> <html> <head> <meta charset="utf-8"> <title> Wymiary obrazka </title> <style> * { font-family: sans-serif; font-size: 10px; } </style> <script> $(document).ready(function() { $('#obrazek').bind('load', function() { alert('szerokość: ' + $(this).width() + ', wysokość: ' + $(this).height()); }); }); </script> </head> <body> <img src="http://cheezhawtness.files.wordpress.com/2010/06/928f6c86-5fad-46fb-8ab6-3c2400627d9f.jpg" id="obrazek"/> </body> </html>