Hola,
¿que tipo de variables son estas de aquí abajo ( $('x1').value, $('y1').value, $('x2').value )... ?
Código:
<script type="text/javascript" charset="utf-8">
// setup the callback function
function onEndCrop( coords, dimensions ) {
$( 'x1' ).value = coords.x1;
$( 'y1' ).value = coords.y1;
$( 'x2' ).value = coords.x2;
$( 'y2' ).value = coords.y2;
$( 'width' ).value = dimensions.width;
$( 'height' ).value = dimensions.height;
}
</script>
Un saludo
Javi