Basically I would like to supply some generic embed code which a site admin of any site can add to any of their web pages in their web site. The embed would run a widget (I want to hide the code). The widget each time the page is loaded would go off and do its thing and display its output back within their web page.
I’ve seen examples of this with server side Java Script which does it but was wondering how or if this could be done with Servoy. I’ve looked at the plugins.WebClientUtils.executeClientSideJS(js); but I can’t see how you’d invoke anything servoy aside from having a link from their web page, which is not what I want.
Tons of ways widget embed code can bring back Servoy results. On the simple end there is an iframe deep linking to a Servoy web client. On the complex end link to js resources in the Tomcat directory which trigger a Servoy headless client (not web client plugin – 2 different things) that triggers Servoy server-side methods to do something that eventually return js code that writes out html.
The process of writing a widget with Servoy on the backend is essentially the same as any other technology. The pieces you need to string together are just slightly different. We put up a coding session that does AJAX with Servoy that would help you figure it all out as AJAX and widget programming is quite similar: