views:

539

answers:

4
A: 

Is there any reason you might need to use jQuery.noConflict()?

justkt
There are no additional libraries involved.
Joel Alejandro
+4  A: 

Something in sexylightbox.v2.3.jquery.min.js is causing $ to be set to undefined. If you set a break point before that file loads, $ is correctly an alias for jQuery. I would try loading a version of sexylightbox.v2.3 that hasn't been run through Packer. That way you can properly use Firebug to figure out what is going on.

CalebD
Loaded the unpacked version. Error is pointed at jQuery.bind(), as described in the question update.
Joel Alejandro
I don't know the exact cause, but it seems to be some type of closure issue. Change $.makeArray to jQuery.makeArray in the bind function and it should hopefully work. I think this is a bug on behalf of the sexylightbbox author, since that bind function should use jQuery, not $.
CalebD
That solved the problem. Thanks a lot!
Joel Alejandro
A: 

I think it might have something to do with Content-Type. It seems that jquery.min.js isn't responding with a content type but sexylightbox.v2.3.jquery.jsdoes: application/x-javascript. Can you get those other requests to use application/x-javascript ?

MDCore
A: 

how about try to download the files on their demo that works already.

files on their demo:

use the files that is seen to work... maybe it will help you...

Reigel
This isn't the first implementation I do of SexyLightbox and I've based my usage of it from that exact demo.
Joel Alejandro
Okay... well, I can't find any error on your codes... as far as I see it... and the only thing I can think of are the files... I'll try again... uhm do you have it on localhost or you can give us a link sample?...
Reigel
Problem has been solved. Check out accepted answer.
Joel Alejandro