HTML5 Data Bindings Support Product Page
Answered
json value in a script from data source
Asked 31 Dec 2014 08:48:55
1
has this question
31 Dec 2014 08:48:55 Michele - posted:
Is possibile to set a json value in a script?In this example (not works), I'd like to use a numeric value (5000) for interval, rescue from data source:
<script>
$(function(){
$('.news-ticker').easyTicker({
visible: 1,
interval: {{connTest.data[0].interval_newsticker}},
direction: 'down'
});
});
</script>
Replies
Replied 05 Jan 2015 11:34:44
05 Jan 2015 11:34:44 Teodor Kuduschiev replied:
Unfortunately it is not possible to use data bindings value inside a jquery script block.
Replied 05 Jan 2015 11:52:55
05 Jan 2015 11:52:55 Michele - replied:
Ok, thank you.
