localendar Forums Homepage

Print at Apr 20, 2024, 7:01:05 AM View all posts in this thread on one page
Posted by UnindadeJardim at Mar 28, 2014, 2:14:45 PM
sad   conflict between scripts
Hello, I have two scripts on my website localendar and slider. The two principle operating normally, but after a day that localendar was down I started having problems.
The pop-up event no longer appears on the main page because of a conflict with the slider.
When I comment the following lines
<script type="text/javascript" src="Scripts/jquery.js"> </ script>
<script type="text/javascript" src="Scripts/scripts.js"> </ script>
My slider disappears but the calendar function normally.
Is there anything I can do to make the calendar that will operate normally?
plz help

Posted by support at Mar 31, 2014, 9:38:33 PM
Re: conflict between scripts
Can you post a link to the site where you're using localendar so we can take a look?
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news

Posted by UnindadeJardim at Mar 31, 2014, 10:01:32 PM
Re: conflict between scripts
www.colegiounidadejardim.com.br

Posted by support at Apr 2, 2014, 2:51:04 PM
Re: conflict between scripts
My first guess is that the cause is the old (1.2.6) version of jQuery you are
including on your page.

If you would replace this line:
<script type="text/javascript" src="js/jquery.js"></script>

with this:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>

you might be all set. Let's start there. By the way, nice job with the circles around the dates on the mini-calendar biggrin
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news

Posted by UnindadeJardim at Apr 2, 2014, 6:24:09 PM
Re: conflict between scripts
Hi, I made the changes you suggested, but it did not work and the problem continues.
if you look at the sub-pages of my site you can see that the calendar works correctly...
I'm using this slider http://www.dreamcss.com/2009/04/create-beautiful-jquery-sliders.html

tanks for you help

Posted by support at Apr 10, 2014, 2:26:08 AM
Re: conflict between scripts
There's definitely a javascript conflict, as evidenced by looking at the console when I load your page. I noticed something else that is a problem.

Find this part of your page:

 
<script type="text/javascript" src='http://www.localendar.com/js/PublishedIncludeMini.js'></script>
<link rel="Stylesheet" href="styleslider.css" type="text/css" media="screen" />
<script type="text/javascript" src="Scripts/scripts.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>


and take out the 2nd include of jQuery (you are already including it) and also re-order the lines, so that you wind up with this:

 
<link rel="Stylesheet" href="styleslider.css" type="text/css" media="screen" />
<script type="text/javascript" src="Scripts/scripts.js"></script>
<script type="text/javascript" src='http://www.localendar.com/js/PublishedIncludeMini.js'></script>

----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news

Posted by UnindadeJardim at Apr 10, 2014, 6:26:16 PM
biggrin   Re: conflict between scripts
Hello, thanks for the help.
I managed to solve the problem. the code looked like this
<link rel="Stylesheet" href="styleslider.css" type="text/css" media="screen" />
<script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="Scripts/scripts.js"></script>
<script type="text/javascript" src='http://www.localendar.com/js/PublishedIncludeMini.js'></script>

Posted by support at Apr 15, 2014, 1:33:32 AM
Re: conflict between scripts
Great! I don't think you need that jQuery in there, but if it works, I'd keep it!
----------------------------------------
Marc Higgins
Support Associate, localendar.com
Follow us on Twitter! http://www.twitter.com/localendar_news


Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us