Hi Tony, Mark,

The reason that startup actions can’t trigger a modal is because the actions 
are run before the modal mechanism is initialised. We run the actions early so 
that they can be used to set parameters that are used further down the 
initialisation process (for example, the startup actions have to be very early 
to allow them to set the language or theme before they are initialised).

We could fix it by adding further variants of $:/tags/StartupActions that run 
at different points in the startup process. Perhaps we could use a field “when” 
to contain strings like “before-commands” or “after-load-modules” (referring 
the names of the existing startup modules). I think it would require us to move 
the $:/tags/StartupActions processing into the boot kernel, which is not ideal 
as it’s already getting pretty large.

Best wishes

Jeremy.


> On 3 May 2019, at 05:37, TonyM <anthony.mus...@gmail.com> wrote:
> 
> Mark,
> 
> Thanks, Going from button message to action send message, you do need to use 
> the $, However I use the below form and it works in a button but not in a 
> tiddler tagged startup actions.
> 
> <$button>
> <$action-sendmessage $message="tm-modal" $param="Username Modal"/> 
> Action send</$button>
> 
> Almost all the $:/tags/StartupAction examples use a reveal widget, but even 
> putting it within this makes no difference.
> 
> I am looking for any method, in the startup actions that can stop the user 
> proceeding without taking an action.
> 
> Are their any alternatives to modals?
> 
> 
> Regards
> Tony
> 
> 
> On Friday, May 3, 2019 at 2:04:51 PM UTC+10, Mark S. wrote:
> This won't fix your problem, but based on the examples it should be $param 
> (with a dollar sign).
> 
> I'm thinking that the action widget doesn't work with tm-modal, possibly 
> because the remaining part of the start-up closes out the modal before it 
> even displays. I guess you need a "action-at-end-of-startup" tag. But that's 
> just a guess.
> 
> -- Mark
> 
> On Thursday, May 2, 2019 at 6:28:44 PM UTC-7, TonyM wrote:
> Folks,
> 
> I have a tiddler tagged $:/tags/StartupAction containing 
> <$action-sendmessage $message="tm-modal" param="Username Modal"/>
> 
> Can anyone tell me why I am not presented with the popup modal when I reload 
> the wiki?
> 
> I would have thought this would work, but it clearly does not.
> 
> Thanks in advance
> Tony
> 
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> <mailto:tiddlywiki+unsubscr...@googlegroups.com>.
> To post to this group, send email to tiddlywiki@googlegroups.com 
> <mailto:tiddlywiki@googlegroups.com>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/d8ae8f2c-311c-4201-a3cd-1b8c03e528c6%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/d8ae8f2c-311c-4201-a3cd-1b8c03e528c6%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/AAC510C0-4461-4314-AB93-A4CB10D97AD6%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to