Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 104
  • Last Modified:

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.
0
steva
Asked:
steva
  • 2
  • 2
1 Solution
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
I would use a Web Service on Server that responds to requests from clients with JSON data object containing the product information
0
 
stevaAuthor Commented:
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?
0
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
Yes, that can work. Just remember that it is just a web call to an address and cleartext coming back so very compatible.
0
 
stevaAuthor Commented:
Thanks.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now