- Posts: 2
- Thank you received: 0
Need some help here. js loading order in <jdoc:include type="head" />
- Roman Stepanovych
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
11 years 9 months ago - 11 years 9 months ago #5312
by Roman Stepanovych
Need some help here. js loading order in <jdoc:include type="head" /> was created by Roman Stepanovych
Hello,
where and how can I edit a js loading order, I mean here <jdoc:include type="head" /> ?
my trouble is next, I've added some scripts in a head just to use my own custom slider and rotator,
if I add them before <jdoc:include type="head" /> they don't work at all
,
if I put it after <jdoc:include type="head" /> it's ok, works, BUT dropdown menu not!, well it works but not properly.
Firebug shows 2 errors
Uncaught TypeError: Property '$' of object [object Object] is not a function dropdownMenu.js:132
and
Uncaught TypeError: Cannot read property 'length' of undefined
My <head> looks like this
I believe it's a problem of scripts order,
I really need you help to solve this.
Thanks in advance.
Roman
where and how can I edit a js loading order, I mean here <jdoc:include type="head" /> ?
my trouble is next, I've added some scripts in a head just to use my own custom slider and rotator,
if I add them before <jdoc:include type="head" /> they don't work at all

if I put it after <jdoc:include type="head" /> it's ok, works, BUT dropdown menu not!, well it works but not properly.
Firebug shows 2 errors
Warning: Spoiler!
Uncaught TypeError: Property '$' of object [object Object] is not a function dropdownMenu.js:132
and
Uncaught TypeError: Cannot read property 'length' of undefined
My <head> looks like this
Attachment head.png not found
I believe it's a problem of scripts order,
I really need you help to solve this.
Thanks in advance.
Roman
Attachments:
Last edit: 11 years 9 months ago by Roman Stepanovych.
Please Log in or Create an account to join the conversation.
- Trung Duong
-
- Offline
- Administrator
-
Less
More
- Posts: 2284
- Thank you received: 998
Notice: Undefined variable: end_tag_params in /ssd/home/omega_web/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
Notice: Undefined variable: end_tag_params in /ssd/home/omega_web/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
Notice: Undefined variable: end_tag_params in /ssd/home/omega_web/public_html/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
11 years 9 months ago - 11 years 9 months ago #5326 by Trung Duong
Replied by Trung Duong on topic Re: Need some help here. js loading order in <jdoc:include type="head" />
Can you please submit your site url here, so i can help. Your dropdown doesn't work cause mootools was not loaded.
Regards
Regards
Support email: services(at)omegatheme(dot)com
Follow Us to keep updated!


[img]...[/img]
[img]...[/img]
[img]...[/img]
Last edit: 11 years 9 months ago by Trung Duong.
Please Log in or Create an account to join the conversation.
Time to create page: 0.187 seconds