I'm developing in Coldfusion, by the way.  But, I don't think I can
use a server side script for this as I need it to update without a
page refresh...

There are a number of ways you could do this with a .ajax or similar call.

E.g., let's say you write a coldfusion script that accepts as
parameters the image path and some rotation parameters (let's say 90,
180 or 270 for degrees of rotation to the right).  E.g.,
http://example.com/rotateimage.cf/?image=foo.jpg&rotate=90 ... and
have that script rotate the source image, save it to disk, and return
the new image (you can set headers to deliver a straight-up image from
that URL).  If it makes sense for your app, you could cache the
rotated images and check the cache first ... but those are details.

Then, for example, "onclick" you could replace the src attribute of an
img tag with the rotated version of the URL.

Lots of details here, but that might work.  You could also have the CF
script process the image and return the direct URL to the static file
and replace it with that, instead...

Scott

On 6/27/07, cfdvlpr <[EMAIL PROTECTED]> wrote:

I've taken a look at swfIR and that seems to work.  However, I'm not
sure that I can change the src of the image with Jquery and have it
still work (without a page refresh).  Please correct me if I am
wrong.

I'm developing in Coldfusion, by the way.  But, I don't think I can
use a server side script for this as I need it to update without a
page refresh...




--
.|..
Scott Trudeau
scott.trudeau AT gmail DOT com
http://sstrudeau.com/
AIM: sodthestreets

Reply via email to