php - Phonegap (jQuery mobile, JS) : get several xml files in a folder -
i can ajax 1 specific file :
$.ajax({ async: false, url: url, datatype:"xml", success: function(data) { } });
but i'd xml files in folder. it's impossible list filenames in folder javascript. read, after, php can open xml files , wrap these files in json object. i'll have getjson mobile app. information, xml files have same structure.
anyone php help. tried create exemple :
<?php for($var=5; $var<10; $var++){ $myarray[]=$var; } echo json_encode($myarray); ?>
but can't array :/
Comments
Post a Comment