Problem with jQuery when question mark in address
-
I use jQuery tabs module for menu on my webpage and it works fine excepts for certain pages with a question mark is in address. I mean it’s not that whenever I type ? in address the module stops working, no. It’s only in some cases like for example themes preview.
When I open homepage it works fine but when I open ?preview=1&template=defaulttheme&stylesheet=defaulttheme&TB_iframe=true it works unexpectedly.
Firstly page loads (I can see that tabs are in mess so jQuery tabs module didn’t load), then some script is executed and instead of tabs content home page is inserted (everything which was between body tags). Then the page goes totally blank and starts to load and never ends…
It is the same no matter if jQuery is loaded from wp-includes or Google server. I load all js scripts with wp_enqueue_script().Should look like: https://img819.imageshack.us/f/issue1.png/
Looks like: https://img825.imageshack.us/f/issue3.png/Any ideas?
- The topic ‘Problem with jQuery when question mark in address’ is closed to new replies.