Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having trouble creating multiples instances #47

Closed
Rqsb opened this issue Jul 20, 2014 · 1 comment
Closed

Having trouble creating multiples instances #47

Rqsb opened this issue Jul 20, 2014 · 1 comment

Comments

@Rqsb
Copy link

Rqsb commented Jul 20, 2014

Hello,

I've been struggling a bit with the binding of multiple instances. Visually, the plugin works correctly, but since I need to bind it on the go, I have trouble with binding the data correctly.
In fact, when I have 5 instances of the plugin in one page, the data returned is always from the latest created cropbox.

On your example, you create 2 cropboxes by using the next selector, but since I cannot do that for my app, I have to identify them related to the id of the image and then bind it the right fields in the form.

Here's a link to a test
http://selim-benhhabbour.fr/cropbox/

Thanks for your help !

@acornejo
Copy link
Owner

Using multiple instances should not be an issue (I do it in my websites quite frequently).

Even in the demo, http://acornejo.github.io/jquery-cropbox/, there are already examples of using multiple cropbox instances of different sizes.

Unfortunately, I do not have the time required to debug your app (read the bug reporting section at the end of the README in this repository). Summary: If you can repdoduce the problem in the jsfiddle http://jsfiddle.net/Ak6d5/, feel free to post a link here and I'll reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants