Recommendations for providing dynamic widget content for third-party sites?

I’m wondering what best practices are for delivering dynamic content in an easy drop in style that can be used by third-party content editors.

To clarify, we would like to give third parties the opportunity to display dynamic content on our website without back-end integration, where they would have to call one of our API servers - ideally, this would be possible for their content editors simply include the provided snippet in their HTML. A concrete example is the bestseller list, which changes every few hours.

Using IFRAME is one of the obvious ways to achieve this, but I'm curious if there are others that allow closer integration into their original and more flexible style and are the “expected best practice” for such a proposal, as this is not a field that I know well - maybe JavaScript / JSON?

+3
source share
3 answers

Alternative iFrames: JSONP

JSONP is used by Javascript widget libraries to output data from the widget library server since JSONP bypasses problems with the same source code.

JS - .

, iframe.

, , JS , , JS /. , , .

+1

iframe, - , JavaScript, , , , , . , iframe , JavaScript, .

iframed, , , , .

+3

, Pandora . Caja, JavaScript.

0

Source: https://habr.com/ru/post/1770212/


All Articles