Integrating with a zoomer

3 views
Skip to first unread message

f.p...@wedoo.it

unread,
Apr 21, 2009, 9:07:39 AM4/21/09
to javascript-image-cropper-ui
Hi everybody,

i'm trying to integrate the amazing cropper-ui on top of some kind of
javascript zooming like the one seen on this page:
http://demo.magentocommerce.com/catalog/product/view/s/anashria-womens-premier-leather-sandal/id/135/category/5/?___store=default
. It would be great in order to tend making a complete tool like
http://kroppr.rborn.info/ .
I thought it could have been quite easy to get it, but i'm having
troubles:

evexs = new Event.observe(
window,
'load',
function() {
obj = new Cropper.Img(
'testImage',
{
ratioDim: { x: <?=$ratioWidth?>, y: <?=$ratioHeight?> },
minWidth: <?=$ratioWidth?>,
minHeight: <?=$ratioHeight?>,
displayOnInit: true,
onEndCrop: onEndCrop
}
)
product_zoom = new Product.Zoom('testImage', 'track', 'handle',
'zoom_in', 'zoom_out', 'track_hint');
}
);

the product_zoom object is not working when on testImage...
Reply all
Reply to author
Forward
0 new messages