Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

It is possible to send JavaScript code to be executed on the client browser from a C++ module loaded on server.

Run JS code on client browser in Kudo Editor iframe

The JS code you want to execute on client can be sent from server to client as a string using WApplication’s doJavaScript function (SDK/Headers/wt_inc/Wt/WApplication). Your module needs to link against Wt lib located in SDK (SDK/Libraries/wt_lib/).

...

Post a message from Kudo Editor iframe to Partner Web Application

It is possible to post data from Kudo Editor iframe to the Partner Web Application directly on the client browser. A Partner Web Applications is referred as “parent” in our SDK.

Using our SDK

Our SDK provides two convenient C++ functions for the communication from Kudo Editor loaded in an iframe to a Partner Web Application referred as parent in the SDK, see API Reference.

Code Block
void XeIntegration::postStringToParent( std::string message );
void XeIntegration::postJSONMessageToParent( std::string messageName, std::string messageContent );

...