I want to make this answer complete by adding that it's safer to use
WWidget::doJavaScript(), which even in special cases guarantees that
jsRef() will exist when you call doJavaScript().

BR,
Wim.



2012/12/29 Nagaev Boris <bnag...@gmail.com>

> Hello!
>
> You can get DOM element using WWidget::jsRef() method. It returns JS
> expression to access this DOM element of this widget. To execute
> custom JS code, use method WApplication::doJavaScript(). To load
> custom JS file, use WApplication::require().
>
>
> http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WWidget.html#aa2b7078b3b43d53a85e5244b45d504f7
>
>
> http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WApplication.html#a2a92457b9212cef4057cb54e56183967
>
>
> http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WApplication.html#ae88546224ed32cade783da188b145138
>
> On Sat, Dec 29, 2012 at 9:00 PM, Rashad M <mohammedrasha...@gmail.com>
> wrote:
> > How to make bubble popups and link it with a DOM element?
> >
> > jQuery had some libs which do the trick. But how can I access jquery from
> > inside Wt.?
> >
> > I would like to see bubble popup linked with DOM element in Wt
> >
> > --
> > Regards,
> >    Rashad
> >
> >
> ------------------------------------------------------------------------------
> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> > MVPs and experts. SALE $99.99 this month only -- learn more at:
> > http://p.sf.net/sfu/learnmore_122912
> > _______________________________________________
> > witty-interest mailing list
> > witty-interest@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/witty-interest
> >
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122912
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to