CB and Superfish and jQuery

14 years 11 months ago #98477 by Minnie Mouse
CB and Superfish and jQuery was created by Minnie Mouse
Hi, CB is loading jQuery 1.3.1 on the registration page. i use superfish menus using jQuery 1.2.6 on my menus. i also use it for some other goodies. i would like to not load the CB version. i am getting errors due to the double loading i believe. plus, its just silly to have that much loaded on the page.
where can i comment out the load?
will the js work with the older version of jQuery?
would it be better to not load the older version? i had the feeling that then my scripts that relied on that may not work...

help!
thanks, MM

Please Log in to join the conversation.

14 years 11 months ago #98560 by krileon
Replied by krileon on topic Re:CB and Superfish and jQuery
CB will not like the idea of using an older JS library or not being able to load its JS library at all. Best course of action is to remove the JS loading of your menu.

CB also runs in no conflict mode, so this should not be of issue. Would be helpful if you provide what errors are occurring.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 11 months ago #98581 by Minnie Mouse
Replied by Minnie Mouse on topic Re:CB and Superfish and jQuery
hi, thanks for replying.
here are the errors, there are two. the first is from superfish:

jQuery("ul.sf-menu").supersubs is not a function

the second is from a custom png fix i installed.
[Exception... "'Syntax error, unrecognized expression: [@src$=.png]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

if i disable my jQuery in favor of CB then i dont have jQuery anywhere except my registration / CB pages. if CBs script is running in no conflict mode (which i see) shouldnt that prevent errors like the one above?

Please Log in to join the conversation.

14 years 11 months ago #98590 by krileon
Replied by krileon on topic Re:CB and Superfish and jQuery
Correct, running in no conflict should prevent such errors.

You may want to load your JS in no conflict mode as well which should elevate the problem (should've be in conflict to begin wtih).

I do believe there is error with your JS though, which too could cause issue to come to light only when in presence of similar JS. As loading 2 jQuery libraries should not cause them to conflict.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 11 months ago #98592 by Minnie Mouse
Replied by Minnie Mouse on topic Re:CB and Superfish and jQuery
krileon, i just started to figure that out. :-)
can i run the no conflict declaration twice...
example

no conflict
my javascript
no conflict
CB javascript

?

Please Log in to join the conversation.

14 years 11 months ago #98593 by krileon
Replied by krileon on topic Re:CB and Superfish and jQuery
Yes, you can run no conflict for your JS. CBs is implemented automatically.

docs.jquery.com/Core/jQuery.noConflict

Post edited by: krileon, at: 2009/05/13 19:02


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.224 seconds

Facebook Twitter LinkedIn