Its required to create a service to embed widgets on any foreign website(server), using
servlets where i'll pass encrypted widgetId and in turn i will get html for displaying it on screen. Also a refresh button with the embedded widget is to be provided so as to fetch updated computed data. The point is that user should copy some html/script code and place it on his website.
I am thinking of following approach.
An empty span with id, followed by a js script to make ajax call to the server to get widget HTML.
Any better approach to this problem?
Kindly ask for clarifications if required.