Hey Dushan,

2010/10/26 Dushan Savich <[email protected]>:
> Hey all,
>
> I've found a solution:
>
>         WApplication::instance()->require("js/jquery-1.4.2.js");
>         WApplication::instance()->require("js/jquery.prettyPhoto.js");
>
>         WApplication::instance()->doJavaScript("$(document).ready(
> function(){$(\"a[rel^='prettyPhoto']\").prettyPhoto();});",true);
>
>
> We can put this somewhere in the community wiki.

It sounds even better when you found the solution rather than me
helping out :-) You can perhaps put in the ticks&tricks section ? We
can later still move things around if we want.

I also suspect there shouldn't be a need to require jquery since that
is part of Wt (or at least some jquery version is, if it is too old I
will bump it).

Regards,
koen

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to