jquery - how to use $.ajax() in anywhere -
my file in d drive
d:/item/1.js
i not use xampp or wamp
it not work
function request($i){ $url = "item/"+$i+".js"; $.ajax({ crossdomain: true, cache: false, type: 'post', url: $url, datatype: 'json', success: function(datax){ //return data; data = datax; }, error: function(){ //return error(); data = error(); } }); } i want work anywhere
for example :
file:///c:/document/item/1.js , flash memory , , ....
i can not use .load() because json
thanks
Comments
Post a Comment