icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3)+"/"+data[i].heading+".png",
I have a strange question is it possible to force the js to go into another folder I am interested in something like Airline/ used aircraft type / heading image according to the aircraft used on flight?
ok now it works:
icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3)+"/"+data[i].aircraftname+"/"+data[i].heading+".png",