> 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');
>
> });
That did not work either. I then revisited classrecords.tiddlyspot.com
and found that its easy to callup code from [[PageTemplate]]. I put
this at the very bottom of my PageTemplate:
<span macro="tiddler zz-myScript"></span>
On Jan 15, 11:18 pm, Michael Mahemoff <[email protected]> wrote:
> 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.