Hey Frank,

2016-05-18 17:13 GMT+02:00 K. Frank <kfrank2...@gmail.com>:

> and I don't see any js source.
>
> I copied the js link in the blog post:
>
>     <div id="chat"></div>
>     <script src="
> http://www.webtoolkit.eu/wt/examples/simplechat/chat.js?div=chat";>
>     </script>
>
> into a local html file that I am experimenting with, and the embedding
> seems to work.  But where does the js file come from?  Is it part of
> the chat example?  Does it get generated automatically?
>

It gets generated automatically for a 'WidgetSet' entrypoint.


> My practical question is:  If I want to embed my own Wt widget into
> some non-Wt html, what do I need for my js "glue" (presumably
> analogous to chat.js), and how do I create it?
>
> (By the way, I never see any text in any of the embedded chat widgets,
> neither in those on the www.webtoolkit.eu web pages nor in my local
> embedding test.  I do see text in the simplechat example:
>
>    https://www.webtoolkit.eu/wt/examples/simplechat/simplechat.wt
>
> including text entered into the embedded chat widgets.  That is, the
> behavior I see is that the embedded chat widgets can "transmit" but
> don't "receive".)
>

There was a deployment issue, thanks for pointing it out. That's been fixed
now.

With few exceptions, you can do exactly the same in the same way in a
widget-set deployed applications as for a plain Wt application.
You will want to be a bit more careful with importing CSS files, etc... as
this might also influence the host page.
The main feature that's lacking in a widget-set application is internal
path handling.

Regards,
Koen
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to