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

About IE Compatibility - Simple Fix #48

Open
mrtgzl opened this issue Mar 15, 2011 · 3 comments
Open

About IE Compatibility - Simple Fix #48

mrtgzl opened this issue Mar 15, 2011 · 3 comments

Comments

@mrtgzl
Copy link

mrtgzl commented Mar 15, 2011

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");
}

@jakemac53
Copy link

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

@mrtgzl
Copy link
Author

mrtgzl commented Oct 19, 2011

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

@jakemac53
Copy link

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");
}

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