if I use
- Code: Select all
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-v.json&callback=?', function(data) {
it works fine.
if I use
- Code: Select all
series : [{
name : 'AAPL',
data : [
[1100131200000,27.65],
[1100217600000,27.75],
[1100476800000,27.62],
[1100563200000,27.47],
[1100649600000,27.45],
[1100736000000,27.70],
[1100822400000,27.58],
[1101081600000,30.68]
],
tooltip: {
yDecimals: 2
}
}]
it works fine.
But if I use my one file it doesn't work.
- Code: Select all
$.getJSON('returnfile.aspx?filename=x.json&callback=?', function(data) {
I saved the output from
- Code: Select all
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-v.json&callback=?
in a txt-File and on page_load the returnfile.aspx read the txt-File
I tried: MIME-Type: text/javascript, text/json, application/json, text/plain
and Response.WriteFile(x.json)
I tried:
Response.Write(ContentOfTheFileAsString)
But it does't work, I can't see any Chart
if I call the page returnfile.aspx seperately I get the same output like 'http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-v.json&callback=?
I don't understand what is different.
Can you help me?