Cropper not working

4 views
Skip to first unread message

lakc

unread,
Jun 16, 2008, 8:05:48 AM6/16/08
to javascript-image-cropper-ui
Hi,

I've created one page which consists multiple text fields and equal
number of buttons associated with each text field. Text field value
points to a image path. When I click on button it has to open that
particular image in a new window and should add cropper to that. This
is my requirement.

When I started testing with dummy Image URL, means i've created one
main file and a file to be opened when we click on button. Main file
contains one text field and a button(anchor tag). when i click on that
it should open the second file, in this file the image name is hard
coded. If i access the second file directly through the browser it's
working fine, when it's opened in popup window it's giving following
error:


Error Msg : CropImageManager.attachCropper.bindAsEventListener is not
a function

At Line :
Event.observe( $('add'), 'click',
CropImageManager.attachCropper.bindAsEventListener( CropImageManager ),
false );

Plz help me.

Thnx in adv,

David Spurr

unread,
Jun 16, 2008, 8:54:31 AM6/16/08
to javascript-im...@googlegroups.com
What is your CropImageManager? To me it looks like some code is either not included or some code is executing before the requirements have loaded. However I can't debug your custom code (CropImageManager) without seeing it.

-D
Reply all
Reply to author
Forward
0 new messages