Thank you, that was a very informative answer. Even I understood :)
Only I could not get it to work :$
I've changed it to this (also updated the example 
https://dl.dropboxusercontent.com/u/955759/forms.html): 
 
  submitHandler: function(form, event) {
   var $title = $("input[name=title]", form);
   $title.val($.trim($title.val()));
   event.preventDefault();
   var f = jQuery(form).serializeObject();
          console.log("formData: ", f);
   var tid = new Tiddler( f.title);
   tid.text = f.text;
   tid.modifier = f.username;
   tid.creator = f.username;
   tid.tags = f.tags || [];
   store.saveTiddler(tid);
   saveChanges(true,[tid]);
   story.closeTiddler('formTemplate');
   story.displayTiddler(null,'SenasteNytt');
   console.log("tid: ", tid)
  }
 
It closes the form and opening the tiddler I want but it will not create 
the new tiddler. It works without the extra two lines.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to