How do I integrate ChatApplication, I would need to pass in const
Wt::WEnvironment& env and SimpleChatServer& server
Wt::WWidget *Home::chat()
{
    Wt::WContainerWidget *result = new Wt::WContainerWidget();

    ChatApplication chatWidget = new
ChatApplication(Wt::WApplication.environment,
Wt::WApplication.environment.server);
    chatWidget->setStyleClass("chat");

    return result;
}

This doesn't seem to work either, I have been stuck on this problem for
a while and making no head room, you are saying that SimpleChatWidget is
only used for the PopupChatWidget class?
I am not understanding the relationship between these class if that is
the case.

On Tue, 2014-02-25 at 02:03 +0400, Nagaev Boris wrote:

> 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
------------------------------------------------------------------------------
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