Welcome Guest   | Login   
  Search  
  Index |  Recent Threads |  Register | 


Quick Go »
Thread Status: Normal
Total posts in this thread: 8
[Change thread status] [Delete this Thread] [Move this Thread]
[Add To My Favorites] [Watch this Thread] [Post new Thread]
Author
Previous Thread This topic has been viewed 4036 times and has 7 replies Next Thread
UnindadeJardim
New Member



Joined: Oct 29, 2013
Posts: 4
Status: Offline

Edit this Post   sad   conflict between scripts Reply to this Post
Reply with Quote
[Delete this Thread]

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
[Mar 28, 2014, 2:14:45 PM] [187.75.164.188] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Sep 15, 2004
Posts: 6016
Status: Offline
Edit this Post   Re: conflict between scripts Reply to this Post
Reply with Quote
[Delete this Post]

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
[Mar 31, 2014, 9:38:33 PM] [24.189.164.123] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
UnindadeJardim
New Member



Joined: Oct 29, 2013
Posts: 4
Status: Offline

Edit this Post   Re: conflict between scripts Reply to this Post
Reply with Quote
[Delete this Post]

www.colegiounidadejardim.com.br
[Mar 31, 2014, 10:01:32 PM] [187.75.164.188] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Sep 15, 2004
Posts: 6016
Status: Offline
Edit this Post   Re: conflict between scripts Reply to this Post
Reply with Quote
[Delete this Post]

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
[Apr 2, 2014, 2:51:04 PM] [24.189.164.123] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
UnindadeJardim
New Member



Joined: Oct 29, 2013
Posts: 4
Status: Offline

Edit this Post   Re: conflict between scripts Reply to this Post
Reply with Quote
[Delete this Post]

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
[Apr 2, 2014, 6:24:09 PM] [187.75.164.188] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Sep 15, 2004
Posts: 6016
Status: Offline
Edit this Post   Re: conflict between scripts Reply to this Post
Reply with Quote
[Delete this Post]

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
[Apr 10, 2014, 2:26:08 AM] [24.189.164.123] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
UnindadeJardim
New Member



Joined: Oct 29, 2013
Posts: 4
Status: Offline

Edit this Post   biggrin   Re: conflict between scripts Reply to this Post
Reply with Quote
[Delete this Post]

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>
[Apr 10, 2014, 6:26:16 PM] [187.75.164.188] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Sep 15, 2004
Posts: 6016
Status: Offline
Edit this Post   Re: conflict between scripts Reply to this Post
Reply with Quote
[Delete this Post]

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
[Apr 15, 2014, 1:33:32 AM] [190.88.149.195] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
[Show Thread Printable Version] [Post new Thread]

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