{solved} Problems with jQuery

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
neophron
Forum Members
Forum Members
Posts: 145
Joined: Sun Feb 12, 2006 12:11 am
Location: Berlin

{solved} Problems with jQuery

Post 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?  ???

 
Last edited by neophron on Tue Jun 24, 2008 2:40 pm, edited 1 time in total.
bterkuile
Forum Members
Forum Members
Posts: 97
Joined: Sun Jul 22, 2007 11:48 am
Location: Netherlands

Re: Problems with jQuery

Post 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
User avatar
neophron
Forum Members
Forum Members
Posts: 145
Joined: Sun Feb 12, 2006 12:11 am
Location: Berlin

Re: Problems with jQuery

Post by neophron »

Thanks for your quick answer! I solved the problem  :), now it works.
Post Reply

Return to “Layout and Design (CSS & HTML)”