HI Danielo,
It is possible to write a widget that created a dom element and attaches it
outside of the page container - it can then listen for dom events - this is
how tiddlyclip works:
var messageBox = doc.getElementById("tiddlyclip-message-box");
if(!messageBox) {
messageBox = doc.createElement("div");
messageBox.id = "tiddlyclip-message-box";
messageBox.style.display = "none";
doc.body.appendChild(messageBox);
}
// Attach the event handler to the message box
messageBox.addEventListener("tiddlyclip-save-file", onSaveFile,false);
and the onSaveFile() function generates messages.
Cheers
BJ
On Tuesday, October 6, 2015 at 3:43:36 PM UTC+1, Danielo Rodríguez wrote:
>
> The root widget only catches widget messages, it doesn’t catch DOM events.
>>
> That is the part that I knew
>
>
>
>> If you create an element outside of the page container, and trigger an
>> event from that DOM tree, then there’s nothing in the core that will catch
>> that event.
>>
>
> That is the answer I did not wanted to hear :P
>
> What do you think that would be the best way to place a tiddler at the top
> of the page and hide all the rest of the elements? Including story river,
> sidebars and everything else.
>
> Regards
>
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/3619c648-94ac-4c07-90b1-a360d0a9c7d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.