Page 1 of 1

{solved} Problems with jQuery

Posted: Tue Jun 24, 2008 2:01 pm
by neophron
Hi,

I want to intergrate a jQuery library into CMSMS. I created a normal website with all functions wich work.
http://birdsart.de/temp/kvb/kontakt.html

Now I started to build up the same site with CMSMS but all javascript functions don't work.
http://www.schwartau-food.de/cms/index.php?page=ihre-ansprechpartner

All javascript packages are in uploads/scripts. The template head looks like this:

Code: Select all

{literal}
<__script__ type="text/javascript">
$(document).ready(function(){
	
	$(".accordion2 h3").eq(2).addClass("active");
	$(".accordion ul:not(:first)").hide();

	$(".accordion h3").click(function(){
		$(this).next("ul").slideToggle("slow")
		.siblings("ul:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});

});
</__script>
{/literal}
{literal}
<__script__ type="text/javascript" src="uploads/scripts/jquery-1.2.6.min.js"></__script>
{/literal}
{literal}
<__script__ type="text/javascript" src="uploads/scripts/show_hide_slide.js"></__script>
{/literal}
{*{literal}
<__script__ type="text/javascript" src="uploads/scripts/showhide.js"></__script>
{/literal}*}
{literal}
<__script__ type="text/javascript">

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel();
});

</__script>
{/literal}
Where or what is the error?  ???

 

Re: Problems with jQuery

Posted: Tue Jun 24, 2008 2:29 pm
by bterkuile
You should place the

Code: Select all

<__script__ type="text/javascript" src="uploads/scripts/jquery-1.2.6.min.js"></__script>
Statement above the others

Re: Problems with jQuery

Posted: Tue Jun 24, 2008 2:39 pm
by neophron
Thanks for your quick answer! I solved the problem  :), now it works.