|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
I like monkeys
Join Date: Jul 2003
Location: The South
Posts: 2,512
|
Javascript conflict between libraries...I think
Hey guys,
I found a pretty cool lightbox jQuery script called bumpbox which I'm having some trouble implementing into my website. I'm new to javascript in general, so bear with me. I have the jQuery library in the same js folder as bumpbox.js and mootools.js, and I'm using it for a vertical slider at the top of my site. The only code for the slider is - HTML Code:
jQuery(document).ready(function(){
jQuery(".btn-slide").click(function(){
jQuery("#panel").slideToggle("slow");
jQuery(this).toggleClass("active"); return false;
});
});
Any idea what's going on? Thanks so much!
__________________
Desktop 1: Intel i7 920--GA-x58-UD3R--Corsair xMS3 6GB (3 X 2GB) DDR3 1333mhz--Sapphire HD 4870 1GB--PC Power & Cooling Silencer 750w psu--WD SATA 3.0 gb/s 320 GB HD--Lite-on DVD-DL burner--Thermaltake SopranoRS black case--Windows 7 Professional 64-bit Desktop 2: Intel C2D E4400--GA-P35-DS3R--Corsair xMS2 2GB (2 X 1 GB) DDR2 800--eVGA 8600 GT--Fortron Source 500 watt psu--WD 250 gb HD--HP DVD-DL burner--Windows Vista Home Premium Laptop: Apple Macbook |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
You'll need to include the jquery framework JS file, the mootools JS file, and the main JS file for the bumpbox in the header of your HTML file.
Do you have firebug add-on installed for firefox? That usually helps in finding errors. Also, check firefox's error console. It's usually easiest to work with if you click "clear", then reload the HTML page you're working with.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Last edited by Force Flow; 01-04-2010 at 03:29 PM. Reason: typo |
|
|
|
|
|
#3 |
|
I like monkeys
Join Date: Jul 2003
Location: The South
Posts: 2,512
|
Hey Force, thanks for the help. The bumpbox only needs a link to bumpbox.js and mootools.js. When I link to the jQuery library it breaks. That's why I thought there was a conflict, but it still broke after a noConflict.
I'll use firebug and see what I can find. Thanks for the tip. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|