On Fri, Jan 15, 2010 at 5:58 PM, shavinder <[email protected]>wrote:
> It looked it should work but it didnt:
> I have a tiddler [[zzz-myScript]] which is tagged with systemConfig
> and contains this:
>
> jQuery('.header').ready(function(){
> jQuery('.header').click(function(){
> alert('hello');
> });
> });
>
> This code works when run from firebug console, but not via
> systemConfig tagged tiddler above.
> Why?
>
>
The plugin is eval()'d by TiddlyWiki core after .header (and the page) has
loaded, so the body of jQuery(.header') never runs. You can just eliminate
it in your plugin and do:
jQuery('.header').click(function(){
alert('hello');
});
-- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

