> Mind that this shall be stored in the users cookie and > not the document itself. > > > Any hints for me? >
As far as I know, cookies only work via the url. An easy script - adapted from a forerunner of StorySaverPlugin - is this little html script: <html><a href="javascript:void(eval(decodeURIComponent(%22(function() {try{var%2520tids%253D%255B%255D%253Bstory.forEachTiddler(function (title%252Celement)%257Btids.push(String.encodeTiddlyLink(title))%257D) %253Btids%253Dtids.join(%2522%2520%2522)%253Bif%2520(!confirm (%2522DefaultTiddler%2520will%2520be%2520set%2520to%253A%255Cn%255Cn %25250%255Cn%255CnIs%2520it%2520OK%2520to%2520proceed%253F%2522.format (%255Btids%255D)))%2520return%253Bvar%2520t%253Dstore.getTiddler (%2522DefaultTiddler%2522)%253Bstore.saveTiddler(t.title%252Ct.title %252Ctids%252Cconfig.options.txtUserName%252Cnew%2520Date()%252Ct.tags) %253Bstory.refreshTiddler(%2522DefaultTiddler%2522%252Cnull%252Ctrue) %253BdisplayMessage(%2522DefaultTiddler%2520has%2520been%2520updated %2522)%253B}catch(e){alert(e.description||e.toString())}})() %22)))"<span>set default</span></a></html> this simply saves all displayed tiddlers to the [[DefaultTiddlers]] shadowed tiddler. !!! Note: GoogleGroops formating adds unintended newlines, above script has to be written all in one line. There are only 2 empty spaces between: a href and: set default Regards.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en -~----------~----~----~----~------~----~------~--~---