Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Error appears when loading html with Facebook like button in browser view

$
0
0

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 address
When 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.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>