Hi Stephen

> This website, http://cjhunt.github.io/, doesn't seem to work when I try
to import it into 5.1.7. Does anyone know why?

It works for me. I downloaded a copy of the HTML file from the website, and
then dragged the file into an open tiddlywiki.com in Firefox. The tiddlers
were all imported OK. What browser/operating system are you using?

> And as long as I'm asking, can someone point me at a good example/demo
widget? In particular, I'm looking for one where I can create my own
message that will be picked up by the widget with appropriate event
listener.

Have you looked at the widgets in the core? There's a lot of them which
makes it hard to choose which one to look at, but if you're thinking of
something that can practically be made into a widget, then there's probably
an approximate match already in the core.

There are several core widgets that set up widget event listeners, but
perhaps the simplest is linkcatcher:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/widgets/linkcatcher.js

>  It wouldn't matter if all the widget did was put up an alert that said
"Hello there, Sailor." The ones I've looked at so far have me stumped,

I'd suggest reviewing the linkcatcher docs on tiddlywiki.com, then reading
through the code above. It's a pretty minimal example of a widget that
doesn't need complex refresh handling.

Best wishes

Jeremy.




On Sat, Feb 14, 2015 at 10:26 AM, Tobias Beer <[email protected]> wrote:

> Hi Stephen,
>
>
>> This website, http://cjhunt.github.io/, doesn't seem to work when I try
>> to import it into 5.1.7. Does anyone know why?
>>
>
> Chances are, it's got to do with what you get when you enter <<version>>
> into a tiddler on http://cjhunt.github.io.
>
> And as long as I'm asking, can someone point me at a good example/demo
>> widget? In particular, I'm looking for one where I can create my own
>> message that will be picked up by the widget with appropriate event
>> listener. It wouldn't matter if all the widget did was put up an alert that
>> said "Hello there, Sailor." The ones I've looked at so far have me stumped,
>>
>
> While the CountWidget <http://tiddlywiki.com/#CountWidget> would perhaps
> better be a filter these days,
> it's possibly one of the simpler ones to look at...
>
> $:/core/modules/widgets/count.js @ tiddlywiki.com
> <http://tiddlywiki.com/#%24%3A%2Fcore%2Fmodules%2Fwidgets%2Fcount.js>
>
> Best wishes, Tobias.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to