0

I am breaking my head for last 2 weeks trying to create an app that will be iOS and Android using HTML5 and jQuery Mobile. I need my app to contact a server to get data. I was trying Ajax but it can not be done because of cross domain policy. I was trying iFrame which I found clever as idea to get a solution to my problem BUT I can not get it's html content.

I am new to this mobile App development. Can anyone suggest me a solution how to get this done? What is the best practice for an app to contact to server and retrieve data from it?

I am not loading html from a server and then run my app on mobile device through mobile browser. I will have my app compiled for mobile platform (iOS and/or Android) and run it from there. For Development I use IDE=Brackets, with "Edge Inspect" plugin which allows me to run app on device as I develop it.

Thank you!

2
Contributors
1
Reply
12
Views
4 Years
Discussion Span
Last Post by mustafaneguib
0

why dont you try using jquery ajax along with jsonp? i have used jquery ajax with jsonp for websites without any problem. i haven't used jquery mobile as of yet, but this is a basic component which jquery mobile should also have.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.