Link to home
Start Free TrialLog in
Avatar of steva
steva

asked on

What is the easiest way to pass an array from a server to a mobile device?

I would like to pass an array of text information from my server to a smart phone that requests it. For example, the phone says "Send me all the information you have about product xyz." What is the simplest way to do this? The information will be pulled from the server database. I imagine some PHP on the server collecting the requested information into an array and then dropping the array down some "channel" to the mobile device. I'm just not sure what that "channel" should look like.

Thanks for any ideas.
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of steva
steva

ASKER

Ok.  After digging a bit more it looks like IOS and Android support jQuery Mobile, and with that they could issue a jQuery.getJSON() to my server URL, specifying the product they wanted information about, and I could respond by gathering the data from the database and returning it.

Does that sound reasonable?
Yes, that can work. Just remember that it is just a web call to an address and cleartext coming back so very compatible.
Avatar of steva

ASKER

Thanks.