Hello Nick,

Only jquery is included, not jquery-UI.

Regarding JQuery:
- if you don't like the JQuery provided with Wt, you can 'upgrade' it
by loading a newer version of JQuery with a require() statement in
your WApplication's constructor (or right after instantiating
WApplication). Likewise, use require() to load JQuery-UI. The related
CSS files can be loaded like any normal CSS file in Wt.
- I've had no problem using JQuery-UI with Wt's normal support for
interacting with JavaScript. See indeed examples/JavaScript (but use
WWidget::doJavaScript rather than WApplication::doJavascript if you
use a widget's jsref() method).

Best regards,
Wim.

2011/10/26 Nick Ogden <n...@nickogden.org>:
> Hi,
>
> I'm attempting to create a custom switch widget in Wt which is animated on the
> client with JQuery and emits signals back to the server when activated /
> deactivated.
>
> I have my widget working as a mockup in pure HTML and JQuery, but i'm not
> quite sure how to go about including JQuery from within Wt. I am under the
> impression, from reading the forum, that JQuery is already included with Wt,
> but I don't know if this includes the drag and drop module from the JQuery-Ui
> library which is what I am using. So my question is twofold:
>
> 1. Is the JQuery drag and drop functionality included with Wt (my version is
> 3.1.11) and if so, how does one go about including the JQuery library in the
> widget to allow JQuery calls from doJavaScript()?
>
> 2. Are there any examples of how other widgets are using JQuery that I may
> look at to get an idea of how best to go about this?
>
> Any pointers would be appreciated.
>
> Kind Regards
> --
> Nick Ogden
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to