Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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 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 at 3:28

1 Answer 1

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.