jCropに基づいてextednedプラグインを作成し、複数の画像を次々と切り抜くことができました。jCrop APIはnullまたはIEのオブジェクトではありませんが、FF、Chromeなどで動作します
Chromeを使用して開発してデバッグしましたが、JavaScriptの問題がなくてもすべて正常に動作しました。私はエクスプローラでテストするために来たとき、それは倒れたので、私のjavascriptのは、すべてのChromeの仕事と私ができることを単に...
var jcrop_api; //Global var to be used thorugh out the client
//some code here
//jCrop documention tells us to use this to assign itself to an object.
//I look for both because i use .net masterpages and sometimes not.
$('#SourceImage, #body_SourceImage').Jcrop({},function() { jcrop_api = this; });
//some more code but not far down the line i need to set jCrop options using API
jcrop_api.setOptions({
boxWidth: bw,
onSelect: updateCoords,
minSize: [thisImage.Min.Width, thisImage.Min.Height],
aspectRatio: thisImage.AspectRatio
});
jcrop_api.setImage('../cache/uploads/' + fileName);
ある
jcrop api is null or not an object
を書いたスクリプトエラーを投げましたグローバルトリガーを使用して画像を変更します。なぜ私はそれがIEで動作しないのか分かりません?
+1あなたが私の週末を保存したため:)(私の頭から1つの問題を意味します) – Marecky