Sticky jquery problem!!
Permalink
Hi,
I'm trying to use a slider on my index page that needs the latest version of jquery. When it tries to use the concrete one it dosnt work properly. I've tried hard linking to it in the head and this causes a conflict. I even tried replacing the concrete jquery with the latest one but that causes issues. What I would like to know is if there is a way to use concrete jquery when in edit mode and the later one when not in edit mode!
Or is there a better way around this that I'm not thinking of?
Thanks!
I'm trying to use a slider on my index page that needs the latest version of jquery. When it tries to use the concrete one it dosnt work properly. I've tried hard linking to it in the head and this causes a conflict. I even tried replacing the concrete jquery with the latest one but that causes issues. What I would like to know is if there is a way to use concrete jquery when in edit mode and the later one when not in edit mode!
Or is there a better way around this that I'm not thinking of?
Thanks!
I put this in the footer so out of edit mode it calls the one I need.
<?php if (!$c->isEditMode()) { ?> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <?php } ?>