Scrolling News and Custom jQuery

DVS Developers asked on June 15, 2015 11:50

Hi,

I have added the latest jQuery (v1.11.3) via the head section in a master template to enable some of my jQuery to work using the following code:

<script src="~/CMSScripts/Custom/jquery-1.11.3.js" type="text/javascript"></script>

However, the scrolling news web part stops working. On debugging, I've found it fails in \CMSWebParts\Viewers\Effects\ScrollingText_files\ScrollingText.js on the following line:

    // show main div when everything is set
    $(this.id).style.visibility = 'visible';

If I remove my jQuery script reference, the scrolling news works but my other functions do not If I leave the jQuery in, the scrolling news does not work but my functions do.

Recent Answers


Brenden Kehren answered on June 15, 2015 14:31

What version of Kentico are you using? The The webpart in question includes the jquery library when it loads so there's most likely a conflict. You might try adding your jquery library using the javascript webpart and setting the visibility based on what page the scrolling news webpart is set on.

The other solution would be to not use the scrolling news webpart and create your own or use a plugin that does the same thing with your new jquery library.

0 votesVote for this answer Mark as a Correct answer

DVS Developers answered on June 15, 2015 15:10

We're on v8.2.12 I thought this solution was supposed to avoid this issue? http://devnet.kentico.com/articles/using-a-custom-jquery-when-developing-pages-in-kentico#modifying-kentico

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 15, 2015 17:47

Knowing your version helps and you are correct. This webpart may have been missed in the conversion. You might check the fixed bugs in the hotfixes. OR submit a bug to Kentico.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.