corner icon indicating copy to clipboard operation
corner copied to clipboard

About IE Compatibility - Simple Fix

Open mrtgzl opened this issue 13 years ago • 3 comments

People who had problems with ie compatibility. Code below deactivate the script only for ie browser.

Fırst it checks the browser whether if ie or not. if your browser is ie i just put a comment like Do Nothing, if not just write your plugin codes.

// PUT THIS CODE BETWEEN JAVASCRIPT TAGS

var isIE/@cc_on=1@/; if(isIE){ //Do Nothing ! }else { // CORNER PLUGIN CODES $("#mydiv").corner("bottom","3px"); }

mrtgzl avatar Mar 15 '11 22:03 mrtgzl

The whole point of this is to make the rounded corners work in all browsers.....so I would argue this is not a good fix if you are having IE issues

jakemac53 avatar Oct 07 '11 19:10 jakemac53

Yes, It's just a temparory solution for not receiving any javascript errors.

mrtgzl avatar Oct 19 '11 19:10 mrtgzl

ok, but how about using jQuery's not() function instead (http://api.jquery.com/not/). I have not tested what is below but I believe something like this should work, and only not round the corners on input elements and textareas in IE.

// PUT THIS CODE BETWEEN JAVASCRIPT TAGS

var isIE/@cc_on=1@/; if(isIE){ //Do not select input elements or textareas! $("#mydiv").not("input, textarea").corner("bottom","3px"); }else { // CORNER PLUGIN CODES $("#mydiv").corner("bottom","3px"); }

jakemac53 avatar Oct 19 '11 19:10 jakemac53