Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have my portal on asp.net, my friend have on php. He wants to me to return text data from my database by sending parameter and wants to display it on his portal. I have given him url say abc.com?id=1 for receiving text data. How can he display data returned from abc.com?id=1 on his portal with say "innerhtml" in javascript.

share|improve this question

closed as off-topic by John Conde Mar 7 '14 at 3:28

  • This question does not appear to be about webmastering within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

This question appears to be off-topic because it is about programming which is off-topic at Pro Webmasters. Programming questions may be asked at Stack Overflow but be sure to read their FAQ before posting to ensure your question meets their guidelines. – John Conde Mar 7 '14 at 3:28

You can work like this,

In your website with abc.com?id=1 will read your db data according to id the out put the result as XML or JSON like an API call.

The your friend can read the URL (abc.com?id=1) with JSON or XML parse method in PHP.

This is the way something like many API calls works.

Hope its make sense..

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.