Error appears when loading html with Facebook like button in browser view,
my code are
var browXhr = Ti.Network.createHTTPClient(); browXhr.open('GET', “http://mysite.com/"); browXhr.onload = function() { try{ html = this.responseText; var controller = Alloy.createController('browWin',{html:html,title: e.row.args.title}); $.tabView.open(controller.getView()); }catch(er){alert(er);} } try{browXhr.send();}catch( er ) {alert(er);}
<Alloy> <Window id="browWin"> <WebView id="browView" /> </Window> </Alloy>it shows error like this
webpage not available The webpage at file://www.facebook.com/plugins/like.php?locale=ja_JP&href=https:%3A%2F%2Fwww.facebook.com%2mysite.com%2f/something might be temporarily down or it may have moved permanently to a new web addressWhen I load this page with normal browser(like chrome)
error doesn't appear.
and I don't know why "file:" is appeared in this page.
please help me.