Hi Eric I tried your script but can´t get it to work...it creates a great box at the top of the page with a send bottom at the bottom...but when I type some text and then hit send ..it doesn´t create the tiddler.......nitions
..and ..in the store.saveTiddler line.......can I include tags ?????........I´d like to tag each tiddler as Talk (licked up by a FET that is displaying the chat) and temporary (so I don´t keep saving months worth of chats in each persons TW... Thanks in advance...a real neat solution.. Skye On 14 Set, 01:17, Eric Shulman <[email protected]> wrote: > > One thing I need is to have the TW automatically open a new tiddler, > > in edit mode, with an automatically generated heading (something like > > "UserName-YYYYMMDDHHMM). When that tiddler is saved...a new tiddler is > > automatically opened using the same format.......so that there is > > always a ready tobe edited (written) tiddler open at all times..... > > Try this instead: > > In PageTemplate, add a special 'quickInput' DIV inside the > 'displayArea', and above the 'tiddlerDisplay', like this: > ---------------------------- > <div id='displayArea'> > <div id='messageArea'></div> > <div id='QuickInput' refresh='content' tiddler='QuickInput'></div> > <div id='tiddlerDisplay'></div> > </div> > ---------------------------- > Then, in QuickInput, write: > ---------------------------- > <html><nowiki><form> > <textarea name="txt" rows="5" cols="60" style="width:100%"></ > textarea><br> > <input type='button' value="save" onclick=" > var who=config.options.txtUserName; > var when=new Date(); > var title=who+when.formatString('-YYYY0MM0DD0hh0mm'); > var msg=config.messages.overwriteWarning.format([title]); > if (store.tiddlerExists(title) && !confirm(msg)) return; > store.saveTiddler(title,title,this.form.txt.value,who,when,[],{}); > story.displayTiddler(null,title); > "></form></html> > ---------------------------- > > That's it... without any plugins... > > enjoy, > -e --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

