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


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



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

sad   conflict between scripts Reply to this Post
Reply with Quote

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] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Aug 9, 2022
Posts: 6437
Status: Offline
Re: conflict between scripts Reply to this Post
Reply with Quote

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] 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

Re: conflict between scripts Reply to this Post
Reply with Quote

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


Joined: Aug 9, 2022
Posts: 6437
Status: Offline
Re: conflict between scripts Reply to this Post
Reply with Quote

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] 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

Re: conflict between scripts Reply to this Post
Reply with Quote

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] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Aug 9, 2022
Posts: 6437
Status: Offline
Re: conflict between scripts Reply to this Post
Reply with Quote

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] 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

biggrin   Re: conflict between scripts Reply to this Post
Reply with Quote

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] Show Post Printable Version [Link] Report threatening post: please login first  Go to top 
support
localendar Expert
Member's Avatar


Joined: Aug 9, 2022
Posts: 6437
Status: Offline
Re: conflict between scripts Reply to this Post
Reply with Quote

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] 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