Olaf Bosch schrieb:
> Blair McKenzie schrieb:
>> You could put the size in the url (i.e. url?width=xxx&height=yyy) and
>> then parse out the values on click.
> 
> Thanks Blair, my bad english!?
> 
> I must generate the width/height dynamic/on the fly from the File. I
> known not the width/height!
> Your suggest is good for static load, not for me. :(


Here's what I would try (and haven't yet so I may be totally wrong): If 
the file is on the server you could make an XHR request to a 
php/ruby/java/whatever script that translates the url to a path in the 
file system, gets the file's dimensions and returns them to you. For 
images all these languages should have that functionality in one way or 
the other and maybe you find something for other media types.

Afterwards you could write the object into the page.


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to