I'm using jQuery update module and drupal site uses jQuery v1.11. According to https://www.drupal.org/node/2191771 jQuery v1.9 and greater, no longer support $.browser (jQuery.browser) and thus, I get this error when adding a Nice Menus block to my site, which I noticed affects Admin_menu module from loading properly.

Comments

jkhanlar’s picture

Version: 7.x-3.x-dev » 7.x-2.5
male_karibu’s picture

I've got the same problem today using nice-menus 7.x-2.5. It resulted in broken functionality of a drop-down menus in firefox, chrome and opera. Strange behaviour but real. There are two tentative solutions for this problem:

1. disallow nice-menus to use javascript on the module's configuration panel. It restores drop-down submenus in firefox, chrome and opera but IE ......

2. I copied a code of a jQueery $.browser plug-in (found there http://stackoverflow.com/questions/9638247/is-jquery-browser-deprecated ) to a file dollar_browser.js in sites/all/modules/nice_menus/js folder. Then I added a line
"scripts[] = js/dollar_browser.js" at the end of nice_menus.info file. It works in above mentioned browsers with nice superfish animation. I didn't test it with IE. Of course it's only a kind of prosthesis for temporary use.

jstuckle’s picture

I'm also having this problem, but it's even worse. The error can prevent other modules from working correctly - in my case, colorbox_node will not work. Disabling "Use Javascript" resolves the error, but then the module does not work properly in IE.

jainv18’s picture

@male_karibu - I tried the same things as you suggested but it doesnt work for me, I am getting an error in - nice_menus/js/jquery.bgiframe.js?v=2.1 - $.browser in undefined.

Please suggest if you have faced the same issues

avpaderno’s picture

Version: 7.x-2.5 » 7.x-2.x-dev
astonvictor’s picture

Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.