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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -