Giter Club home page Giter Club logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
I want to use it inside a firefox add-on so the jsCropperUI files are included 
into
an XUL file and not an HTML one.

Original comment by [email protected] on 23 Sep 2008 at 1:16

from javascript-image-cropper-ui.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
AND ... it work on your demo page :(

Original comment by [email protected] on 23 Sep 2008 at 1:19

from javascript-image-cropper-ui.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
I see that there is a /mint/mint.js.php file included to your demo page. Do I 
need it ?

Original comment by [email protected] on 23 Sep 2008 at 1:27

from javascript-image-cropper-ui.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
I guess your issue is due to Draggable (from the script.aculo.us framework) not 
being
included, and no you don't need the mint.js.php file.

As for using it within a firefox add-on don't forget all the dependencies 
(prototype
and script.aculo.us)

Original comment by [email protected] on 23 Sep 2008 at 1:46

from javascript-image-cropper-ui.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
The exception I get when calling 
new Cropper.Img("toBeCropped", { onEndCrop: onEndCrop });

is

[TypeError] Cropper is undefined

Original comment by [email protected] on 23 Sep 2008 at 2:10

from javascript-image-cropper-ui.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
That could be anything, the Cropper could be undefined due to an error in
initializing the cropper or the fact that it's not included. You need to look 
further
up the chain for errors as there has to be a reason why the Cropper isn't 
defined.

Oh hang you, if you're using it in a Firefox extension it might be due to the 
fact it
tries to dynamically include the CSS based on the URL of the cropper.js file -- 
that
wouldn't work in an extension, would it?

Original comment by [email protected] on 23 Sep 2008 at 2:19

from javascript-image-cropper-ui.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
Thank you for your answer. I think that the problem does not come from CSS 
dynamic
include but from a synchronisation problem. In fact I have to include 
jsCropperUI
files dynamically inside the page loaded using 
document.createElement('<script>') and
document.getElementById('head').appendChild. jsCropperUI doesn't seem to be 
happy
with that :)

Original comment by [email protected] on 24 Sep 2008 at 9:36

from javascript-image-cropper-ui.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
The ability to skip auto-include of JS is added in 1.2.1 which will be released 
shortly

Original comment by [email protected] on 6 Oct 2009 at 2:10

  • Changed state: Fixed

from javascript-image-cropper-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.