Convert .js file to javascript object Android -
weather webservice returning .js file. how java object going:
var data1 = new array(); for(var = 0; < jsobject.series[0].data.length;i++){ data1.push(jsobject.series[0].data[i].y);
currently im getting .js file string :/. tutorial or help.
this websites response:
new highcharts.chart({ chart: { renderto: 'tlak' }, plotoptions: { line: { datalabels: { formatter: function() { if(this.x != ' ') return this.y; } } } }, series: [{ data: [1016,1015,1016,1016,1015,1013,1011,1012,1012,1010,1010,1009,1008,1006,1005,1005,1004,1003,1004,1004,1004,1004,1003,1004,1005] }] }); $(document).ready( function($){ $('#sedmodnevna > li').live( 'click hover', function(){ $('#sedmodnevna > li').removeclass('selected'); $(this).addclass('selected'); $('.dan').hide(); $('#odabrani-dan > div:nth-child(' + ($(this).index() + 1) + ')').show(); } ); $('#izabrani-grad a').click( function(){ igrad = $(this).attr('rel'); $('#izabrani-grad').load('/ajax/izaberi-grad.php', {ig: igrad}); return false; } ); } );
Comments
Post a Comment