While debugging my code in Google Chrome, I encountered a red text message:
Uncaught SyntaxError: Unexpected token }.
It's puzzling to me why and where this error is originating. Here is the snippet of code from the source console:
var chart = $('#container1').highcharts();chart.series[0].setData(array2);chart.redraw(); }); //]]>
Another Uncaught SyntaxError: Unexpected token }
</script>
This section is written in vb.net:
Dim script As String
script = _
"var chart = $('#container1').highcharts();" & _
'"chart.series[0].setData(array2);" & _
"chart.redraw();" & _
" }); "
ScriptManager.RegisterClientScriptBlock( _
Me, _
GetType(Page), _
"container1", _
script, _
True)
An additional Uncaught SyntaxError: Unexpected token } occurred in the vb.net code too.