Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Lightbox conflicting with my slide show script, plz help URGENT!!!
Old 11-29-2010, 07:42 PM Lightbox conflicting with my slide show script, plz help URGENT!!!
CircleOfLinks's Avatar
Extreme Talker

Posts: 243
Name: Danny
Location: Sydney
Trades: 1
Hey Guys,

Lightbox conflicting with my slide show script, plz help URGENT!!!

My Lightbox wont work properly.

if you vistit www. volcanos. com.au/menu.php (spaces there on purpos) - I have a sliding image on the top right corner and also uderneith it I have a menu which opens up with lightbox. However the problem im having is when you click on the menu it opens the image in its own window.

in my head section where i have:

<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="slider/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="slider/simplegallery.js"></script>
<script type="text/javascript">

my slideshow works but not the lightbox.

HOWEVER.

If i swap them over to look like this:

<script type="text/javascript" src="slider/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="slider/simplegallery.js"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript">

My slideshow no longer works but the lightbox does.

please anyone got any ideas. Its driving me mad
__________________
Danny

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
 
Register now for full access!
Old 11-30-2010, 01:12 AM Re: Lightbox conflicting with my slide show script, plz help URGENT!!!
CircleOfLinks's Avatar
Extreme Talker

Posts: 243
Name: Danny
Location: Sydney
Trades: 1
anyone??
__________________
Danny

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
Old 12-04-2010, 07:53 AM Re: Lightbox conflicting with my slide show script, plz help URGENT!!!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Obviously some variable names are conflicting.

Check the developers websites for any conflict resolution tools / workarounds
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-04-2010, 09:28 AM Re: Lightbox conflicting with my slide show script, plz help URGENT!!!
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
You can't just throw Prototype and jQuery together and expect them to work automatically. They both use the same global name, "$". You need to include jQuery before Prototype, so that Prototype overwrites jQuery's $ (jQuery plugins are written so that they don't need $, which is just a pseudonym for jQuery). The other thing you could do is take advantage of jQuery.noConflict(). Then, you would have to edit your jQuery code so that it uses jQuery instead of $.

Perhaps an even better solution would be to not use Prototype, Scriptaculous, and jQuery all on a single page. That's a huge amount of bloat. There's a great Lightbox alternative for jQuery that works fine: http://leandrovieira.com/projects/jquery/lightbox/
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 12-04-2010 at 09:33 AM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 12-07-2010, 06:27 PM Re: Lightbox conflicting with my slide show script, plz help URGENT!!!
CSM
CSM's Avatar
Front-End Developer

Posts: 297
Name: Michael Pehl
Location: Palma de Mallorca
Trades: 0
jQuery.noConflict() is the solution for this problem, but that is mentioned in so many blog posts (just use Google)...
__________________
Chief Web Officer / Front-End Developer / System Engineer

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
CSM is offline
Reply With Quote
View Public Profile Visit CSM's homepage!
 
Reply     « Reply to Lightbox conflicting with my slide show script, plz help URGENT!!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.92838 seconds with 12 queries