Problems using jQuery and variable
Please help me, I am trying to create graphs (in django) using jQuery.
Example: http://jsfiddle.net/eM2Mg/
But when I try to send values ββto a variable, jQuery crashed, please explain to me.
There is my code:
<script>
var values = "{{ values }}";
var values2 = values.replace(/enter_key/g, '\\n')
values = values2.replace(/"/g, '"')
g = new Dygraph(document.getElementById("graph"), values, {
legend: 'always',
animatedZooms: true,
title: 'dygraphs chart template'
});
</script>
The values ββwere my string when I alert(values)
see the same format for the graph:
http://www.ex.ua/615449293535
Help me! thank
+3
source to share