要嵌入客户端网站的Java Script代码。 [英] Java Script code to embed in my clients websites.

查看:105
本文介绍了要嵌入客户端网站的Java Script代码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的网站上有一些数据供我的客户使用,我想给他们一些小的java脚本代码将其嵌入到他们的网站中,这段代码将从我的网站上提取他们的结果并将在他们的网站上显示。所以建议我如何实现这个目标。

提前感谢你。

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.

推荐答案

你可以做很多事。我认为这是最好的解决方案,你首先从你的网站公开wcf服务。从其他网站,他们将调用该服务并获取数据并将其显示到该目标网站。

您可以直接将方法公开到您的网站页面的另一种方法,您从您的网站调用的方法基于一些独特的uri。客户端网站可以使用WebClient / HttpWebRequest对象(.NET对象)调用该方法,并从源网站下载/获取响应数据并将其显示到目标网站。要使用/显示数据,您可以使用ajax进行异步通信。



您可以访问以下链接



Link 1



Link 2



链接3



Link 4
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


你能想到的一种方法是最好的解决方案,您首先从您的网站公开wcf服务。从其他网站,他们将调用该服务并获取数据并将其显示到该目标网站。
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.


这篇关于要嵌入客户端网站的Java Script代码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆