freak Posted May 6, 2009 Report Share Posted May 6, 2009 (edited) Man ir viens php fails, kas atrodas uz cita servera, ko megjinu izsaukt caur ajaxu. Tikai nezinu kapec uz Mozzilas shitas neiet cauri. Uz IE strada. Ja visi faili uz viena servera, tad arii iet. Kapec ta? Vai uz mozzilas tas nav iespejams? var url="http://manacitalapa.lv/out.php"; url=url+"?id="+id; url=url+"&sid="+ new Date().getTime(); xmlHttp105.onreadystatechange=f105; //aiz shitaas vietas nereagje xmlHttp105.open("POST",url,true); Edited May 6, 2009 by freak Quote Link to comment Share on other sites More sharing options...
marrtins Posted May 6, 2009 Report Share Posted May 6, 2009 Nu vispār uz IE arī nevajadzētu tam strādāt. Vismaz pie defaultiem settingiem. To nevar darīt dēļ security - visādas jaukas lietas varētu šādi taisīt ;) Ja dikti vajag sauk ar AJAX, taisi uz sava domēna proxy - kādu PHP skriptu, kas ielādēs tos remote skriptus ar curl vai fopen() Quote Link to comment Share on other sites More sharing options...
freak Posted May 6, 2009 Author Report Share Posted May 6, 2009 JAa, atradu, ka to security neljauj, bet skatos tomer, ka tas ir iespejams ar ajax cross domen un tamlidzigiem. Quote Link to comment Share on other sites More sharing options...
marrtins Posted May 6, 2009 Report Share Posted May 6, 2009 Protams! Tikai browserim tas ir speciāli jāpasaka. Quote Link to comment Share on other sites More sharing options...
draugz Posted May 6, 2009 Report Share Posted May 6, 2009 Nu nezinu gan vai crossdomain var nosutit POST. Ar GET cik pagaidam pats esmu atradis var izmantot jQuery getJson $.getJSON("http://crossdomain.lv/index.php?id="+id+"&jsoncallback=?", function(data){ //data faktiski satur json objektu }); un pec tams php varetu atgriezt kaut ko lidzigu sim te <?php echo $_GET['jsoncallback'];?>({'id':'<?php echo $_GET['id'];?>'}) cerams noderes... Quote Link to comment Share on other sites More sharing options...
marcis Posted May 7, 2009 Report Share Posted May 7, 2009 Apskati šo www.ajax-cross-domain.com Quote Link to comment Share on other sites More sharing options...
freak Posted May 7, 2009 Author Report Share Posted May 7, 2009 Man shis nodereja http://crossbrowserajax.com/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.