Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Issue with faded slider

More
11 years 7 months ago #941 by mattnewton27
Issue with faded slider was created by mattnewton27
Hello, love the plugin!

It did fix my google maps not showing on my contact page but it made my template script not work. You will see on my home page there is a faded slider at the top that does not work when I enable your plugin. Unfortunately if I don' enable your plugin then other things stop working. Any idea how to fix it? Thanks a lot.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #942 by admin
Replied by admin on topic Re: Issue with faded slider
Hello!
Thank you, glad you love the plugin.
Can you give me the URL of your website so I can check the source code out? Thanks.

Olivier.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #943 by mattnewton27
Replied by mattnewton27 on topic Re: Issue with faded slider

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #944 by admin
Replied by admin on topic Re: Issue with faded slider
No problem ;-)

There is an issue with the plugin, it erases some code but this has no effect on your site because it is supposed to work when jQuery is not present, which it is. This line is:
<script>!window.jQuery && document.write(unescape('%3Cscript src="/GARBAGE"%3E%3C/script%3E'))</script>

I would just get rid of it (the 'GARBAGE' word comes from the jQuery Easy plugin). I will try to find a way of avoiding that for the next release.

The fade does not work because it uses the variable '$j' instead of 'jQuery'. You can see it here:
$j(window).load(function(){
	$j(function(){
		$j("#faded").faded({
			speed: 500,
			crossfade: false,			
			sequentialloading: true,
			autoplay: 5000	});
		$j("#faded li img").show();
	});
});

I have written an article on how to deal with this kind of case in a case study

I think you just need to add the script declaration
var $j = jQuery.noConflict();
to the 'add script declarations' option of the plugin (you need to use the beta version 1.3.0) to make the fade work.

Olivier.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #945 by mattnewton27
Replied by mattnewton27 on topic Re: Issue with faded slider
Thanks for that. I tried your suggestion and it fixed the faded slider but now the news scroller on the bottom does not work haha.. bummer. At least the maps on the contact page works which was my major concern.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #946 by admin
Replied by admin on topic Re: Issue with faded slider
It seems that you have removed options from the plugin. The jquerynoconflict.js file is missing ('add no conflict code' thru script) and you need to keep the 'strip no conflict code' option to yes.

Olivier.

Please Log in or Create an account to join the conversation.