davidp Posted January 20, 2008 Share Posted January 20, 2008 I am developing a mapping tool where the user is able to click on a country, and when the user does so, I will dynamically bring up an RSS feed associated with that country. Well, the problem is simple: AJAX doesn't allow cross-server requests. Solution 1: I could write a PHP script on my own server. The PHP script would have to accept a GET or POST variable containing the URL of the RSS feed that I want to load. I can then use the sockets API to open up a socket in my PHP script, make the request, wait for a response, and then send the response back from my PHP script to the client. That is a round-about way of doing things, but it will work. The thing is...I don't want to have to do that. That just doesn't seem like the most elegant way of doing things. How would any other web page dynamically load RSS feeds contained on any arbitrary server? Anyone have any ideas? Quote Link to comment Share on other sites More sharing options...
fanfavorite Posted January 23, 2008 Share Posted January 23, 2008 For normal servers I think that is your best option. Have a look at this. http://code.google.com/p/json-xml-rpc/wiki/DocumentationForJavaScript. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.