I want to retrieve some data from another server via ajax. I have searched through the net and been advised to use jsonp method. My question is if that other server does not returns data in json format rather than plainText then how can i catch that data, is there any way?
-
What is the data structure used by the server ? are you using a web-service ? can you show us what have you tried ?Mortalus– Mortalus2013-03-02 11:07:18 +00:00Commented Mar 2, 2013 at 11:07
-
server is just echoing a string and i am trying from my local server(wamp)...anan_xon– anan_xon2013-03-02 11:16:06 +00:00Commented Mar 2, 2013 at 11:16
Add a comment
|
1 Answer
If the server doesn't allow cross-origin resource sharing, and doesn't implement JSONP, you need to use a local proxy. Try the Simple PHP Proxy.