IE issue, just don't work.

557 views
Skip to first unread message

Eduardo Estevão

unread,
Aug 29, 2011, 8:29:05 AM8/29/11
to Jcrop Development Discussion
Hi all...sorry in advance for any mistakes in my english..its not my
main language, and i don't pratice a lot...


I'm having a headache with jcrop in IE....with compatibility mode
work perfect(in IE9)! but IE9,IE8,IE7 without compatibility just
don't work...

the javascript code: http://pastebin.com/cehtr5Cx

i will explain a little the code.

the function processa_imagem, the gets the img uploaded (we have a
specific class to upload)...and set some info....then call de function
cropper(); thats the function to initialize jcrop.
The error seems to be in the 36 line, after end the cropper function.

erro dump in IE9:
SCRIPT5007: Não é possível obter valor da propriedade 'clientWidth': o
objeto é nulo ou não definido
jquery.min.js, linha 151 Caractere 393

translated
SCRIPT5007: Not possible to get propriety value 'clientWidth': object
is null or undefined.
jquery.min.js, line 151 char 393

Eduardo Estevão

unread,
Aug 29, 2011, 9:44:03 AM8/29/11
to Jcrop Development Discussion
Just for the record seems to be conflict problem with Prototype.
prototype removed...works nice.

Kelly Hallman

unread,
Aug 29, 2011, 9:48:08 AM8/29/11
to jcro...@googlegroups.com
Glad to hear you found a workaround. By looking at your code, I'm not sure what the problem is. The only thing I could see is that on like 36 you have a semi-colon (;) at the end of the function definition. Sometimes IE is very picky about stray characters – even though don't believe this should cause a problem – it's worth looking into. Otherwise everything else you've got there looks pretty standard to me.

-Kelly


2011/8/29 Eduardo Estevão <edu...@bigmidia.com>

--
You received this message because you are subscribed to the Google Groups "Jcrop Development Discussion" group.
To post to this group, send email to jcro...@googlegroups.com.
To unsubscribe from this group, send email to jcrop-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jcrop-dev?hl=en.

Eduardo Estevão

unread,
Aug 29, 2011, 12:15:31 PM8/29/11
to jcro...@googlegroups.com
Yeah, i thought the problem us the semi-colon too!, 3 days take me to discover the conflict...when i remove the prototype.js work in IE9 and IE8 nicely!!! without any modifications in IE configurations...its a great plugin! really love it...we are using for  the CBDA (brazillian confederation for water sports..) and works great!

Thank all !


2011/8/29 Kelly Hallman <khal...@gmail.com>
Reply all
Reply to author
Forward
0 new messages