You might take a look at a blog post I did a few weeks ago on dynamic scaling of images using Mochikit and PHP:
http://www.geekceo.com/index.php?/archives/2-Resizable-Photos-with-AJAX-and-ImageMagick.html On Jul 23, 2:44 pm, Jerrod Hofferth <[EMAIL PROTECTED]> wrote: > I'm putting together an iUI interface to our main weblog content, but > many images within articles are a bit too wide for the 320px width. > > I have a javascript that will find all images above 300 px in width, > and size them down to it, taking into account the aspect ratio as > well. I've implemented it before as an "onload" for statically- > accessed mobile pages, but I'm curious as to how this might be > utilized with an AJAX-loaded iUI page. I only need the script to run > on certain pages, so I'd rather not modify the iUI code itself to run > it for every page. > > Any ideas? Is there an equivalent to an "onload" event for the > individual pages that iUI loads in? > > (Of course, this still isn't an optimal solution, as the larger > (400-450px width) images are still *downloaded* before being locally > resized, but it's better than having them *display* too large.) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
