Parse json file that save on server in phonegap

My json file that have data

[
  {
    "id": 19,
    "name": "Science",
    "quiz": "quiz6"
  },
  {
    "id": 21,
    "name": "general knowledge",
    "quiz": "For banking"
  },
  {
    "id": 26,
    "name": "Technologies",
    "quiz": "arithmatic"
  },
  {
    "id": 27,
    "name": "english",
    "quiz": "abcde"
  },
  {
    "id": 28,
    "name": "computer",
    "quiz": "basic Question"
  }
]

save on a server.Now i want to parse it in phonegap(android).How to do that. When I save that file on my project and use it then it work, but when i use that file directly on server site then its not working.Is there any permission or plugin needed to access json on server side.

If in url i pass the "http://some folders/places.php" then it not work.

Answers


Thanks to all. Its working now.I try it on phone and its working.Actually my AVG software block my emulator to access the internet. Thats why it was not working.


Need Your Help

What is nothrow delete in C++?

c++ visual-c++ memory-management

This MSDN page mentions that there're nothrow versions of new and delete. nothrow new is quite a known thing - returns null instead of throwing an exception if memory allocation fails. But what is

How to efficiently apply an arbitrary remapping to a matrix in Python

python-2.7 numpy dictionary reshape remap

I want to remap a matrix in Python 2.7, but the reordering pattern doesn't follow simple rules. I have a (192,1024) numpy source array to start with, and want to get a (768,250) target array in the...