Georgios,
Thank you very much for your interest for this temporary solution.
i answer you tardily, because i needed to correct the precedent code above.
I made a big mistake : implement twice jquery, (so i had finally a lot of errors that i not saw the first time)
Now the code is corrected, it could be largely improved with the numerous options of this great script. (11 lines to paste before </body> and that's it, the job is done)
Please note that regardless of the which JS library we use
-- we need to patch JS for fields that depend on javascript
Concerning this javascript problem, i found this part of documentation :
My javascript events don't work anymore after a new page is loaded¶
Javascript event listeners have to be reinitialized for newly loaded items. You can use the rendered event for this just like how you would use the $(document).ready() event.
And concerning the renderde event i found this example with a tooltip javascript :
rendered¶
argument type description
items array items to be rendered
Triggered after new items have rendered.
This can be useful when you have a javascript function that normally performs some actions on the items in the $(document).ready event. When loading items from a new page using IAS, the document ready handler isn't called. Use this event instead.
In the following example all we iterate through the newly rendered items and setup a tooltip plugin.
Code:
ias.on('rendered', function(items) {
var $items = $(items);
$items.each(function() {
$('.tooltip', this).tooltip();
});
})
i tried to implement this documentation to solve the flexicontent voting javascript.
But i didn't find the good script to add.
If someone could help me to find the solution with the voting javascript (html code below), we could have a almost perfect temporary solution (until the new function is done)
Code:
<ul class="fcvote_list">
<li id="rating_555_main" class="current-rating" style="width:0%;"></li>
<li class="voting-links"><a onclick="" href="javascript:;" title="Insuffisant 1/5" class="fc_dovote star1" data-rel="555_main">1</a></li>
<li class="voting-links"><a onclick="" href="javascript:;" title="Moyen 2/5" class="fc_dovote star2" data-rel="555_main">2</a></li>
<li class="voting-links"><a onclick="" href="javascript:;" title="Bien 3/5" class="fc_dovote star3" data-rel="555_main">3</a></li>
<li class="voting-links"><a onclick="" href="javascript:;" title="Très bien 4/5" class="fc_dovote star4" data-rel="555_main">4</a></li>
<li class="voting-links"><a onclick="" href="javascript:;" title="Très bien 5/5" class="fc_dovote star5" data-rel="555_main">5</a></li>
</ul>