Hi,
Referring to the screencap http://upload.ximnet.com.my/huisheng/crop.png
Requirement: I want to let user crop a 300x300 thumbnail:
1. I have locked the width and height and hide the aspect ratio using JavaScript:
2. But if user drag the resize handler, they are still able to change the thumbnail size.
How do I lock the resize handler to prevent user from re-sizing when cropping?
3. What is the best way / correct way to load the thumbnail size from database? Is it to use Ajax call in the ascx or there is a better method?
Thanks.
Referring to the screencap http://upload.ximnet.com.my/huisheng/crop.png
Requirement: I want to let user crop a 300x300 thumbnail:
1. I have locked the width and height and hide the aspect ratio using JavaScript:
//This code sets the initial dimensions of the CropBox and the aspect ratio
this
._widthTxt.value = 300;
this
._heightTxt.value = 300;
var
ratio = 100 / 100;
// (w/h)
this
._setCropBoxRatio(ratio);
this
._sizeRatio = ratio;
this
._updateCropBoxFromControls();
2. But if user drag the resize handler, they are still able to change the thumbnail size.
How do I lock the resize handler to prevent user from re-sizing when cropping?
3. What is the best way / correct way to load the thumbnail size from database? Is it to use Ajax call in the ascx or there is a better method?
Thanks.