hi Daniel,
thanks for your answer with which I was able to fix the error.
For now I have another problem to solve.
I tried to upload the data via ajax to generate the graph, but I get the following error
ERROR
Uncaught Error: Invalid JSON string: { cols:[{id:'Fase',label:'Fase',type:'string'},{id:'Responsabile',label:'Responsabile',type:'string'},{id:'Inizio',label:'Inizio',type:'date'},{id:'Fine',label:'Fine',type:'date'}], rows:[{c:[{v:'1'},{v:'Philip'},{v: new Date(2015,01,01)},{v: new Date(2015,12,31)}]},{c:[{v:'2'},{v:'George'},{v: new Date(2016,01,01))},{v: new Date(2016,12,31)}]},{c:[{v:'3'},{v:'Anthony'},{v: new Date(2017,01,01))},{v: new Date(2017,12,31)}]}]}
this my code
<html>
<head>
<script type="text/javascript" src="loader.js"></script>
<script type="text/javascript" src="jquery-1.12.0.min.js"></script>
<script type="text/javascript">
async: false,
data: {fk_obbiettivo: '25'},
}).responseText;
console.log(result);
I think the error is due to the string generated from the page gantt_json.asp but I can not figure out where I'm wrong.
This is the code of the page gantt_json.asp
<%
Response.ContentType = "application/json"
'colonne
Response.Write("{ cols:[")
Response.Write("{id:'Fase',label:'Fase',type:'string'},")
Response.Write("{id:'Responsabile',label:'Responsabile',type:'string'},")
Response.Write("{id:'Inizio',label:'Inizio',type:'date'},")
Response.Write("{id:'Fine',label:'Fine',type:'date'}],")
'righe
Response.Write(" rows:[")
Response.Write("{c:[{v:'1'},{v:'Philip'},{v: new Date(2015,01,01)},{v: new Date(2015,12,31)}]},")
Response.Write("{c:[{v:'2'},{v:'George'},{v: new Date(2016,01,01))},{v: new Date(2016,12,31)}]},")
Response.Write("{c:[{v:'3'},{v:'Anthony'},{v: new Date(2017,01,01))},{v: new Date(2017,12,31)}]}")
Response.Write("]}")
%>
I hope you can help me again and I thank you in advance.
Gianluca