Well but saw your last post as well nice documentation.

On Tuesday, March 5, 2013, Tobias Beer wrote:

> Hi Adam,
>
> No idea how this happened, but my last post got deleted. So here it goes
> again...
>
>
> You have it a bit backwards ;-)
>
> Let me give you some commented code...
>
> //wrap all into an anonymous function to which we pass jQuery as the $
>> variable
>> (function($) {
>>   //the output string to be wikified
>>   var out = '',
>>     //a jQuery reference to the list which preferably uses a class, not
>> an id
>>     //which we can also empty right away
>>     $list = $('.myUniqueListClass').empty();
>>   //get the desired tiddlers tagged 'foo' and loop them
>>   store.getTaggedTiddlers('foo').map(
>>     //on each result tiddler run this anonymous function
>>     function(tid){
>>       //add the tiddler title as a link to the output in the form of a
>> list item on its own line
>>       out += '\n*[[' + tid.title + ']]';
>>     }
>>   );
>>   //now render the output into the list element (not the jQuery object!)
>>   wikify(out,$list[0]);
>> }
>> //call the anonymous wrapper function and pass down jQuery
>> })(jQuery);
>
>
> Cheers, Tobias.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:_e({},
> 'cvml', 'tiddlywiki%[email protected]');>.
> To post to this group, send email to 
> [email protected]<javascript:_e({}, 'cvml', 
> '[email protected]');>
> .
> Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Thanks,
Om Prakash Singh

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to