vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Navbar dropdown menus stopped working in chrome & IE (https://vborg.vbsupport.ru/showthread.php?t=324139)

JamesAB 01-07-2017 01:11 PM

Navbar dropdown menus stopped working in chrome & IE
 
I have a bizarre problem that is probably template related.

The dropdown menus in the navbar stopped working in chrome & IE, however they still work in Firefox.

If I switch from my styles to the "Default Style" they seem to work again.

How can I troubleshoot this?
What files or vBulletin components are needed to make the navbar dropdown menus function properly?

I tried simply copying the navbar tempate from the "Default Style" to my own style, but that didn't fix the problem.

Thanks for your help.

MarkFL 01-07-2017 01:29 PM

I would suspect there is some CSS class selector difference. Try inspecting the DOM to see if you can spot the difference between the two styles with regards to any selectors. :)

JamesAB 01-07-2017 02:18 PM

It seems to be related to the contents of headinclude

By converting back to the default from the "Default Style" it makes the menus work again.

I'll try to track down the differences now.

--------------- Added [DATE]1483806663[/DATE] at [TIME]1483806663[/TIME] ---------------

I think it turned out to be a javascript problem.
I had been using async when calling some scripts, but some browsers don't seem to like that anymore.

HTML Code:

<script async type="text/javascript" src="$stylevar[yuipath]/yahoo-dom-event/yahoo-dom-event.js?v=$vboptions[simpleversion]"></script>
<script async type="text/javascript" src="$stylevar[yuipath]/connection/connection-min.js?v=$vboptions[simpleversion]"></script>

When I remove the async directive things seem to work in all browsers again.


All times are GMT. The time now is 10:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00985 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete