Sounds good... good luck to you, too! Rick
> -----Original Message----- > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of > Alexandre > Plennevaux > Sent: Tuesday, January 15, 2008 11:41 AM > To: Jquery-en > Subject: [jQuery] Re: jqmodal autosize to fit contained image in window > > > Are you returning a the "imgPreloader" variable back to the server to process > your image > server-side, or is everything being done on the fly client-side? > > nope, all done on the client side > > Well, after looking more closely at your code, I can see you're setting the > img attributes > based on the window dimensions... good idea. I'll have an even closer look > at your code. > > indeed, in fact i measure the screen, i measure the image, i compare the two > and get the > maximum size the image can take (maximum being 1:1, not overstretching the > image otherwise the > image would look crapy), i add a few pixels for the modal div's width and > height so that it > visualy contains the image. > > good luck! > > alex