--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Stephan
Could you perhaps post the example to TiddlySpot?
What you are trying to do can be accomplished readily using the edit widget.
Both this and your "home tiddlers" hack make use of inline event handlers.
Generally, fiddling around directly with the DOM will fall foul of TW5's refresh mechanism.
Except for replacing a class, there is no other change in the DOM at all in my current example. Still a no-go?
Except for replacing a class, there is no other change in the DOM at all in my current example. Still a no-go?To answer myself: YES! And this seems to be the cause for my problem. After typing one character, it seems the tiddler is refreshed and so the "view" class reappears in my form element.
That's correct. TW5 reconstructs the DOM dynamically from the underlying render tree; it can happen at any time. It means that you can't maintain state in DOM nodes.
As you already told me before Hangout #20, you know about this loose of focus. Memorizing the field and refocussing after tiddler refresh won't help, I fear. When a test input receives focus, usually the content gets selected, if I'm not mistaken. So when you type a character, before the next one, the text will be selected and the next character will delete that selected part.
My idea would be, at least for my use case, to not update anything until the "done" button is pressed.
I'd like to explore that idea but I have no clue about any JavaScript API offered by TW5 or whether there is any. I need to know how to retrieve and store the field values.
I also like to know whether or not the change of a class in my posted example can, for this case, be assumed safe? As long as the tiddler I'm editing does not get refreshed, I don't see, at the moment, a problem.
Another idea, how I thought I could achieve what I want, was something like this: I need to create some Form Tiddler which defines the layout and fields which are editable. This Form Tiddler then serves as the View and Edit template at the same time. It should be possible to create a tiddler with this Form Tiddler as its template. Clicking the EDIT button should then simply offer to change the fields.
I hope I could explain what I mean!?
I am not familiar with the field things in TiddlyWiki ....
... I don't know about the template things
... view mode editing capabilities in the TiddlyWiki (classic). It's working in many cases for regular tiddler text (not sure for fields, though)...
<$edit-text field="pub_date" type="date" tag="input"></$edit-text>
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/tAucMtLyMlk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
I can't even imagine how you came to the conclusion you needed so many tidlers an the way you chain they.
I really miss a tutorial explaining the "basics" of TW.
In my opinion the TW documentation is a bit obscure for people not used to it.
Yes, I mean your contacts example. I don't understand at all why you use a viewer tiddler, but I suppose why since I'm familiar with the separation of concerns. That kind of things are a bit twisted for a third person.
One thing that I really miss is a list if core available variables and methods and how to use them. I tried to look into tiddlywiky main page with no luck. One example is the tw-list-item. What is that exactly? How many types of items are out there? How can I use them for my own purposes? I don't like to use things that I don't understand where they came from. Maybe there is a better way to do what I want but I don't know how because I lack for a reference.
Of course nobody have to write that extensive documentation, but it will help a lot.
While I think of it, a lot of shadow tiddlers with a list widget have an attribute itemClass="tw-menu-list-item" which seems to be obsolete (or is not documented) and replaced with the attribute template="$:/core/ui/ListItemTemplate" or a <div class="tw-menu-list-item"> inside the list widget content.
You're right, the itemClass attribute is obsolete. I've removed the left-over references here:Best wishesJeremy
Anyway, thanks to everybody for helping so much
That creates a button that creates a new tiddler. Using the message! I just checked the button documentation and there is no clue about that. I like to play around, but sometimes reverse engineering takes too much time and a bit of frustration.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.
Hello Jeremy, thank you for the explanation. I understand the mechanism, but it still unintuitive, even reading the documentation. What kind of messages does the navigator accepts? Is that the only one or there are others like close tiddler and so?