Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-03-2010, 07:40 PM   #1
I like monkeys
 
tomster2300's Avatar
 
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;
	});
	
	 
});
When I link to the jQuery library the slider works but the bumpbox fails. I kill the link and bumpbox works. I tried a noConflict thinking that might be the issue, but alas no luck.

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
tomster2300 is offline   Reply With Quote
Old 01-03-2010, 08:16 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
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
Force Flow is offline   Reply With Quote
Old 01-03-2010, 10:14 PM   #3
I like monkeys
 
tomster2300's Avatar
 
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.
tomster2300 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:44 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2