- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I was wondering is it possible to load a webpage with the XDK, not with opening the native browser but in the main view, without any address bars and etc. (fullscreen), just like a native webview? I know it will not be as fast as having all the files locally storaged but I want to check how fast it would be.
Thnk you.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use window.location to load any webpage:
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=no"> <script src="cordova.js"></script> </head> <body> <script> window.location = "http://www.intel.com"; </script> </body> </html>
The above code will work, but if there is connection lost when loading website, the app might end up with blank page, and you may have to kill app and reload, here is a better way of opening website in cordova app, it uses connection and in-app browser cordova plugins to do checks before loading website and handles connection loss cases. https://github.com/krisrak/html5-cordova-webapp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. Very nice solution !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i want make a ebook app which app first time the pdf dawnload from server and the pdf load in memory and scound time when i want to show that then the pdf open from memory.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page