- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could someone please help me, I tried to create a simple application that can view information from a database. It is working in the emulation mode, but when I try the application on my device it does not work. I am new to Intel XDK, any help will be greatly appreciated.
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Adil,
I think that the problem is that in your device this won't work:
http://localhost/Hospital/GetPatientData.php
This url should be the server's one.
Regards
Diego
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's probably related to the whitelist settings on the Projects tab, but it's hard to say precisely. Did you try some of the demo/sample apps to see how they are configured? Especially the whitelist settings.
Also, try using the Debug tab, it will provide a more accurate view of running your app on a real system. See this doc for even more options > https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Adil,
I think that the problem is that in your device this won't work:
http://localhost/Hospital/GetPatientData.php
This url should be the server's one.
Regards
Diego
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Adil, Deigo's comment is the most likely cause of your troubles. Also, see this blog for some useful getting started hints regarding how a Cordova app differs from a web app > http://blogs.intel.com/evangelists/2015/12/31/five-useful-tips-on-getting-started-building-cordova-mobile-apps-with-the-intel-xdk/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Diego and Paul, I have resolved my problem. I had to remove the hidden frame part, change the whitelist settings, and change the local host to my IP address in the html portion of the code.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page