views:

37

answers:

1

Hi,

i have this cropper in my app.

login: fer password: m

Note: after loginning you will be redirected to another page. Then click again the link i mention.

I can see it working in FF, but not in IE7/8 (Windows XP SP2, just installed).

It's supposed it works ok, because I don't have any problems to operate the demo in both browsers, and in IE 8 Developer Tools the all the .js's necessary appeared as loaded.

I have contacted with the developer of the cropper but he didn't reply.

Any idea?

Javi

A: 

What if you remove the comma at line 61 in your source code? IE is very annoid with errornous commas.

function() {
    new Cropper.Img (
        't3soeta',
        {
            minWidth: 200,
            minHeight: 100,
            ratioDim: { x: 200, y: 100 },
            displayOnInit: true,
            onEndCrop: saveCoords,
            onloadCoords: { x1: 0, y1: 0, x2: 200, y2: 100 }, <---
        }
    ) <---
}

I'm not sure, since Javascript doesn't require semi-colons everywhere, but I would personally have put a semi-colon to end the new statement.

Does this help?

Chau
Thanks Chau, but it didn't work..
@user248959: Try to correct the error in the version referenced by your link. Then I might be able to get closer to the error.
Chau