iseee01
08-01-2007, 02:51 PM
I will try to be as specific as possible in describing the issue.
I am running both lightbox (which uses prototype and scriptalicious) and thickbox (which uses jquery.js) on my site.
lightbox 2 works fine.
Lightbox 2:
huddletogether.com/projects/lightbox2/
thickbox is installed but works fine.
Thickbox:
jquery.com/demo/thickbox/
Implementation instructions are on the sites above (respectively). I have double checked they are both installed correctly, I think they are!
None of the scripts work when both are installed together, however this fix is supposed to make them work together without conflict.
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
From the official jquery site.
I have implemented the first fix.
<html>
<head>
<script src="prototype.js"></script>
<script src="jquery.js"></script>
<script>
jQuery.noConflict();
// Use jQuery via jQuery(...)
jQuery(document).ready(function(){
jQuery("div").hide();
});
// Use Prototype with $(...), etc.
$('someid').style.display = 'none';
</script>
</head>
<body></body>
</html>[/CODE]
This will revert $ back to its original library. You'll still be able to use "jQuery" in the rest of your application.
I am wandering If I have implemented this fix rignt, simply by adding that script above int he head section of my site.
You may view the source of my site to see if I am going wrong as far as implementing this fix goes, and to find a solution as to how I can go about fixing this.
Section removed by WA as user requested
The problem lines are:
advertising.php (line 55)
$("someid") has no properties
[Break on this error] $('someid').style.display = 'none';
And
thickbox.js line 21 $(domChunk) has no properties
tb_init("a.thickbox, area.thickbox, input.thickbox")thickbox.js (line 21)
(no name)()thickbox.js (line 14)
to the wait list jQuery.readyList.push()jquery.js (line 1534)
(no name)()jquery.js (line 1558)
each([function(), function()], function(), undefined)jquery.js (line 339)
ready()jquery.js (line 1557)
[Break on this error] $(domChunk).click(function(){
I know Lightbox and Thickbox can work together - im just not sure how :) Im a complete javascript novice as you may have guessed!
Thank you in advance for your help and suggestions,
Kind Regards :)
I am running both lightbox (which uses prototype and scriptalicious) and thickbox (which uses jquery.js) on my site.
lightbox 2 works fine.
Lightbox 2:
huddletogether.com/projects/lightbox2/
thickbox is installed but works fine.
Thickbox:
jquery.com/demo/thickbox/
Implementation instructions are on the sites above (respectively). I have double checked they are both installed correctly, I think they are!
None of the scripts work when both are installed together, however this fix is supposed to make them work together without conflict.
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
From the official jquery site.
I have implemented the first fix.
<html>
<head>
<script src="prototype.js"></script>
<script src="jquery.js"></script>
<script>
jQuery.noConflict();
// Use jQuery via jQuery(...)
jQuery(document).ready(function(){
jQuery("div").hide();
});
// Use Prototype with $(...), etc.
$('someid').style.display = 'none';
</script>
</head>
<body></body>
</html>[/CODE]
This will revert $ back to its original library. You'll still be able to use "jQuery" in the rest of your application.
I am wandering If I have implemented this fix rignt, simply by adding that script above int he head section of my site.
You may view the source of my site to see if I am going wrong as far as implementing this fix goes, and to find a solution as to how I can go about fixing this.
Section removed by WA as user requested
The problem lines are:
advertising.php (line 55)
$("someid") has no properties
[Break on this error] $('someid').style.display = 'none';
And
thickbox.js line 21 $(domChunk) has no properties
tb_init("a.thickbox, area.thickbox, input.thickbox")thickbox.js (line 21)
(no name)()thickbox.js (line 14)
to the wait list jQuery.readyList.push()jquery.js (line 1534)
(no name)()jquery.js (line 1558)
each([function(), function()], function(), undefined)jquery.js (line 339)
ready()jquery.js (line 1557)
[Break on this error] $(domChunk).click(function(){
I know Lightbox and Thickbox can work together - im just not sure how :) Im a complete javascript novice as you may have guessed!
Thank you in advance for your help and suggestions,
Kind Regards :)