Mobile app version of vmapp.org
Login or Join
Shelley277

: How to send and display data from one domain to another? 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

@Shelley277

Posted in: #CrossPlatform #Javascript

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

1 Comments

Sorted by latest first Latest Oldest Best

 

@Looi9037786

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..

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme