Due to the way CometActors work, they must be on the originally requested
page and cannot currently be delivered via an Ajax response.

On Wed, Jan 20, 2010 at 1: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]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
--
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