Hi everyone,
I use the Jcrop extension with the following configuration:
<?php
$this->widget('ext.jcrop.EJcrop', array(
// Image URL
'url' => '', // this is left empty, because I want to set it dynamically
// options for the IMG element
'htmlOptions' => array('id' => 'imageId'),
//
// Jcrop options (see Jcrop documentation)
'options' => array(
//'minSize' => array(620, 130),
'setSelect' => array(0, 0, 620, 130 ),
'allowResize' => false,
),
));
?>
which gives me the follwing HTML output:
/*<![CDATA[*/
jQuery(function($) {
jQuery('#imageId').Jcrop({'setSelect':[0,0,620,130],'allowResize':false,'onChange':function(c) {ejcrop_getCoords(c,'imageId'); ejcrop_showThumb(c,'imageId');},'ajaxUrl':null,'ajaxParams':[]});
});
/*]]>*/
How can I access this object once the widget is rendered? I want to call setImage() which is a method of the Jcrop object, but how do I access the Jcrop object?