I really don't see the need for such use-case. I mean if one wants to
see async stuff in a dialog only when the dialog is opened this could
be easily done via Ajax requests that will "activate"/"deactivate"
async messages to client by sending from the ajax functions messages
to the comet actor.

Is that your use-case ? .... so see async intems coming from server
only when the dialog is opened?

Br's,
Marius

On Jan 20, 11:00 pm, ced <[email protected]> wrote:
> Hi all,
>
> I'm trying to create some sort of progress notification for a long
> lasting request. The idea is to answer an ajax request with a
> JqJsCmds.ModalDialog which embeds a comet actor like so:
>
> ajaxButton("Start process", () => ModalDialog(<div><div>Progress</
> div><lift:comet type="Progress"/></div>))
>
> Unfortunately this doesn't work, the dialog doesn't get displayed.
> Embedding a "normal" snippet works just fine though.
>
> The code returned in the response to the button click seems ok also.
>
> As a workaround I place the comet actor in the page enclosed in a
> hidden <div id="progress-actor"><lift:comet type="Progress"/></div>.
> Then I return the ModalDialog(<div><div>Progress</div><div id="actor-
> goes-here"></div>) along with some JS-code that takes the "progress-
> actor" div, moves it into the "actor-goes-here" div and makes it
> visible.
>
> Does anyone tried something similar? Any help is appreciated...
>
> Chris
-- 
You received this message because you are subscribed to the Google Groups 
"Lift" 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/liftweb?hl=en.


Reply via email to