Click here to Skip to main content
15,891,888 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I have some data on my website for my customers and I want to give them small java script code to embed it in their websites, and this code will pull their results from my website and will be visible on their website. So suggest me how to achieve this.
Thanking you in advance.
Posted

You can do it many ways. One way you can i guess it would be best solution, You first expose wcf service from your website. From other website they will call that service and get the data and display it to that target website.
Another way you can directly expose method to your web site page, The method you call from your site based on some unique uri. Client web site may call that method with WebClient/HttpWebRequest object(.NET object) and download/get response data from source website and display it to target website. To consume/display data you can use ajax for async communication.

you can visit the following links

Link 1

Link 2

Link 3

Link 4
 
Share this answer
 
v2
Comments
winners6 21-Feb-13 7:59am    
Thanks Habib, will the solution you suggested work both the ways i.e. either of the sides can update the data or that will be one way updation. Can you explain me in details or provide me some references and links where I can start with.
S. M. Ahasan Habib 21-Feb-13 9:20am    
provide links inside solution. Please read it again.
One way you can i guess it would be best solution, You first expose wcf service from your website. From other website they will call that service and get the data and display it to that target website.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900