ContentFlow: load AddOn when creating?

I am using ContentFlow ( http://www.jacksasylum.eu/ContentFlow/index.php ) to create an image carousel on my page. Images are uploaded via jQuery AJAX call. It works great. ContentFlow is included in this code:

<script language="JavaScript" type="text/javascript" src="contentflow.js" ></script>

Now I want to use the "white" addOn by default when creating a ContentFlow. CF is created in my .ready () document - codeblock. According to the documentation, this should be done as (I believe):

$(document).ready(function () {
...
var ajax_cf = new ContentFlow('ajax_cf', {useAddOns : 'white' });
});

ContentFlow is just fine, but AddOn / theme doesn't apply. When using an approach other than AJAX, the theme is applied correctly, so I know for sure that the theme works, has no syntax errors, etc.

Any clues?

+3
2

script .

, -:

<script type="text/javascript" src="content_flow/contentflow.js" load="slideshow"></script>
<script type="text/javascript" src="content_flow/ContentFlowAddOn_slideshow.js"></script>

Ajax.

+2

- ContentFlow, , , : http://www.jeremyckahn.com/blog/?p=61

ContentFlow $(document).ready

, Oliver Kohll , AddOn, load, contentflow.js, ... AddOn. JS

, !

+1

Source: https://habr.com/ru/post/1776772/


All Articles