开发者

Android 2.2 SDK - Unsafe JavaScript attempt to access frame with URL - Google Checkout

I have Google Checkout javascript code inside of an HTML file hosted on a server. I can view the cart inside of the Android Emulator Browser, but when I point a WebView Activity to the URL, the error I get is Unsafe JavaScript attempt to access frame with URL and 开发者_如何学Ca blank page displays.

How come this doesn't work in the app but on the same browser the phone uses?


Try to use

//ajax.googleapis.com/ajax/libs

instead of

http://ajax.googleapis.com/ajax/libs

Omitting the protocol (http or https) will allow the browser to request the file based on the current page protocol

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜