Page 1 of 1
Is there a conflict somewhere on my CMSMS?
Posted: Thu Jan 12, 2012 2:45 am
by fearmydesign
Hello, I am using a fresh new installation of 1.10.3 and everything is working fine as far as the layout goes, except for one page; it seems that its conflicting with CGCalendar maybe... but the CGCalendar is working fine.
Issue: the top jQuery rotating banner that I have just stays loading and never shows the images?
Page with banner working: http://www.chilesoy.com/index.php
Page with banner NOT working: http://chilesoy.com/index.php?page=eventos
My page template has the following code at the top:
Code: Select all
{literal}
<__script__ type="text/javascript" src="uploads/js/jquery-1.5.1.min.js"></__script>
<__script__ type="text/javascript" src="/uploads/js/jquery.orbit-1.2.3.min.js"></__script>
<link rel="stylesheet" href="/uploads/js/orbit-1.2.3.css" />
<__script__ type="text/javascript">
$(window).load(function() {
$('#featured').orbit();
});
</__script>
{/literal}
Then inside the same page under options/metadata I have this:
Code: Select all
{JQueryTools action='incjs'}
<__script__ type="text/javascript">
{literal}
jQuery(document).ready(function(){
jQuery('a.calendar_event').fancybox();
});
{/literal}
</__script>
Can anyone help me figure out the conflict? Thank you
Re: Is there a conflict somewhere on my CMSMS?
Posted: Thu Jan 12, 2012 3:30 am
by Wishbone
View the source on both. Your second link has a boatload of jquery plugins that the first one doesn't... Likely there is some conflict there.
Re: Is there a conflict somewhere on my CMSMS?
Posted: Thu Jan 12, 2012 3:37 am
by fearmydesign
Wishbone wrote:View the source on both. Your second link has a boatload of jquery plugins that the first one doesn't... Likely there is some conflict there.
Thank you, and I see what you are talking about... however these are automatically being pulled by the JQueryTools Module I installed to get the CGCalendar to display the fancybox window for the events... hope this makes sense... if I uninstall this module, my calendar events pop-up window will not work properly....

Re: Is there a conflict somewhere on my CMSMS?
Posted: Thu Jan 12, 2012 4:00 am
by Wishbone
For the fun of it, insert the other jquery plugins into your home template to verify that this is the conflict.... Then remove one of them at a time to see which is causing the conflict and we can go from there.
Re: Is there a conflict somewhere on my CMSMS?
Posted: Thu Jan 12, 2012 4:37 am
by fearmydesign
Wishbone wrote:For the fun of it, insert the other jquery plugins into your home template to verify that this is the conflict.... Then remove one of them at a time to see which is causing the conflict and we can go from there.
First of all thank you for taking the time to help me out, I really appreciate it.
Here's what I've got... I placed both <scripts> on a GlobalContent block (1 for the top banner, and the other for the fancy box window event of the calendar), so now I have this code on my template
Code: Select all
{JQueryTools action='incjs'}
{global_content name='script'}
Everything works now except for the event on the calendar, it now opens on a new window, not even on the same page, so the fancy box window is not working.
Also, I am not able to remove 1 by 1 of the jQuery per your suggestion as these are automatically placed on the page when calling the {JQueryTools action='incjs'} module, so I could not test that part...
hope this helps, any suggestions?
Thanks
Re: Is there a conflict somewhere on my CMSMS?
Posted: Thu Jan 12, 2012 5:25 am
by Wishbone
fearmydesign wrote:Also, I am not able to remove 1 by 1 of the jQuery per your suggestion as these are automatically placed on the page when calling the {JQueryTools action='incjs'} module, so I could not test that part...
I meant that you can put the plugins manually into the home page template, without the {JQueryTools} call. Then you can remove them one at a time. From the help, it seems that you can include specific ones that you need.
Code: Select all
(optional) include="" - Applicable only to the incjs action, this parameter allows explicitly including certain jquery plugins whilst excluding all others. If this parameter is specified, the exclude parameter will be ignored. Possible values are tablesorter,cluetip,form.
Re: Is there a conflict somewhere on my CMSMS?
Posted: Thu Jan 12, 2012 5:49 pm
by Dr.CSS
I'm surprised any jquery works on either page, you shouldn't have two main 'jQuery' calls in a page...
Very top of home page...
eryTools/lib/jquery-1.4.2.min.js">
Below all that...
cript" src="uploads/js/jquery-1.5.1.min.js">