Hi Marius. It's pretty simple: creations : Seq[JsCmd] deletions : Seq[JsCmd] partialUpdate(JsCmds.seqJsToJs(creations ++ deletions))
Which is just a seq of JsCmds right? The JsCmds themselves appear to work ok, it's just that a small part of their content (this AJAX <a>) is not rendered correctly. The JsCmds themselves declare a JsVar with the NodeSeq as a value by calling toString on the NodeSeq. This JsVar is then inserted into the HTML using JQuery. I guess there is something that goes on after a NodeSeq is returned in a normal snippet that I am not doing here to resolve the <lift:a> tag? Let me know if I am not being clear. Thanks, Dan On Jan 8, 1:55 pm, Marius <[email protected]> wrote: > How does you partialUpdate code looks like? > > Note that with partialUpdate you need to return a JsCmd, and not a > NodeSeq. > > Br's, > Marius > > On Jan 8, 2:25 pm, Dan Gravell <[email protected]> wrote: > > > I'm really enjoying using Lift. It makes this AJAX and comet stuff > > very easy! > > > I have a problem with rendered AJAX NodeSeqs using SHtml. > > > This is within a Comet actor. On first render, it works fine. For > > instance, in my HTML, I get: > > > <a key="F2524140538393W2" href="javascript://" > > onclick="lift_ajaxHandler('F2524140538393W2=true', null, null)"> > > <span>stuff</span> > > <span id="someuniqueid"/> > > </a> > > > The <a> and two <span>s are the rendered content. > > > On partial updates however, I get this: > > > <lift:a key="F555356094486VTJ"> > > <span>stuff</span> > > <span id="someuniqueid"/> > > </lift:a> > > > It looks like the <a> is not fully rendered. > > > The call to SHtml.a() occurs within the context of a bind() call - I > > assume this is ok. > > > If anyone could help I'd be most grateful. > >
-- 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.
