Hello,
I'm using a star rating, 100% working except when i insert values with javascript :
EXAMPLE : http://www.gamer-certified.fr/test.html
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery.ajax({
type: "get",
dataType: "jsonp",
url: "http://www.gamer-certified.fr/export/widget.php",
data: {demandeur: "esl" },
cache: true,
success: function(data, textStatus, XMLHttpRequest){
var obj = null, length = data.length;
for (var i = 0; i < length; i++) {
widget = "<span class='stars'>"+(data[i].qualite / 2)+"</span>" // automatic not working
widget = "<span class='stars'>4</span>" // manually not working
jQuery('#gamer-certified'+i).html(widget);
}
}
});
});
</script>
The only thing is working is putting directly the data in the span value OUTSIDE the widget +=
<span class="stars">4</span> // is working when directly put on the HTML side
EXAMPLE : http://www.gamer-certified.fr/test.html
Thanks !