📜 ⬆️ ⬇️

Fix jGrowl plugin in IE 7

Today I was surprised to find that the popular jQuery plugin for displaying jGrowl version 1.1.1 messages does not work in IE7. Rather, the messages themselves are displayed, but somewhere below. In other browsers, this problem is not observed.

Honestly spent about an hour: playing with div.ie6 blocks in the source css-file (yes, if someone doesn’t know - there are separate styles for IE. No comments), I studied the plugin itself for buggy.
Then I studied this topic in Google and found the following.

The plugin has this line:
if ($ .browser.msie && parseInt ($. browser.version) <7) $ (this.element) .addClass ('ie6');
')
Before it you need to insert the following hack and it will work:
if (jQuery.browser.msie && parseInt (jQuery.browser.version) == 6 && window ["XMLHttpRequest"]) {
jQuery.browser.version = "7.0"
}

True, rounded corners are not shown in IE 7 and Opera 9.5, but that’s another story. I would be glad if someone helped.

Wrote to the developer (by the way, was not the first). Let's hope that the next version will fix it.
On the site of the plugin itself, everything works without fixation, which is surprising. The version there is also 1.1.1, if I'm not mistaken.

Source: https://habr.com/ru/post/44241/


All Articles