Hey,

To intagrate Wt chat, use the following HTML:

<div id="chat"></div>
<script 
src="http://www.webtoolkit.eu/wt/examples/simplechat/chat.js?div=chat";></script>

I think, you can not manage it from host application apart from JavaScript.

Code you trying to write is to run your own Wt chat instead of
integrating main chat.


Regards,
Boris Nagaev


On Tue, Feb 25, 2014 at 1:28 AM, Jeffrey Scott Flesher Gmail
<[email protected]> wrote:
> I want to create a function inside wt-home example to call SimpleChat:
>
> Wt::WWidget *Home::chat()
> {
>     Wt::WContainerWidget *result = new Wt::WContainerWidget();
>
>     SimpleChatWidget *chatWidget = new
> SimpleChatWidget(Wt::WApplication.environment.server(), result);
>     chatWidget->setStyleClass("chat");
>
>     return result;
> }
>
> This does not work and I have tried many variables based on getting the
> current server, but all fail to compile, how do you do this correctly?
>
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to