jquery + concrete5 = conflicts
Permalink
this block, no matter what order I put it in, cause conflicts. it either breaks the jquery slider (all images appear and dont slide) or it breaks concrete5 (when you login the menu to edit at the top of screen doesn't appear... only a space for it). or it appears to allow both to work, but when you go to edit page, and you try to edit the slider images, the images are still sliding and throws an error causing the image to disappear.
ccm_areaMenuObj13= New Object();ccm_areaMenuObj13.type = "AREA";ccm_areaMenuObj13.aID = 13;
etc.etc.etc.
basically, the whole thing is a problem.
<?php Loader::element('header_required'); ?>
<link href="<?php echo $this->getThemePath()?>/css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/jquery.cycle.all.js" ></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/jquery.colorbox.js"></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/common2.js"></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/ga.js"></script>
So how can these conflicts be worked out? Concrete5 seems promising to use, but if it's this sensitive to breaking, I'd be concerned about using it with any project.
ccm_areaMenuObj13= New Object();ccm_areaMenuObj13.type = "AREA";ccm_areaMenuObj13.aID = 13;
etc.etc.etc.
basically, the whole thing is a problem.
<?php Loader::element('header_required'); ?>
<link href="<?php echo $this->getThemePath()?>/css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/jquery.cycle.all.js" ></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/jquery.colorbox.js"></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/common2.js"></script>
<script type="text/javascript" src="<?php echo $this->getThemePath()?>/js/ga.js"></script>
So how can these conflicts be worked out? Concrete5 seems promising to use, but if it's this sensitive to breaking, I'd be concerned about using it with any project.
jquery is already included in concrete5 page calls, so if you're including it again it will cause conflicts for sure. I'm not a developer, but is that possibly what's going on?
thank you. i'm not including jquery twice
Is the site publicly accessible? Having access to the page would help us help you identify the problem.
-Steve
-Steve
why are you including ga.js, you should use it right off the google servers, also that issue is usually because jquery is loaded twice or your using noConflict
the site isn't publicly accessible. and no, there isn't multiple versions of jquery being loaded. the slider continues to run even in edit page mode of c5. and if you try to edit the images in that slider, it creates an error message. i think i would need a way to stop all javascript that's not C5 related on the page when C5 goes into edit mode. how does one do that?