On Mon, Aug 24, 2009 at 9:05 AM, Bjarte Stien Karlsen < [email protected]> wrote:
> > Hello lifted, > > I am playing around with the 50ish line based comet example that dpp > has talked about in several talks and that is written more about here: > http://m.3wa.com/?p=304 > > Today I showed this to a friend and it looks like the focus of the > input box is lost when an update is received. Does anybody have a clue > on how this can be fixed? Is it not possible to just update part of > the DOM without having to steal the focus from the input field? Actually, the input field is being removed from the DOM by the rendering of the chat text. You can see a more complete Comet chat example at http://demo.liftweb.net/chat The code separates the input box from the chats so that the input box is not destroyed each time the comet update happens. > > > -- > Bjarte Stien Karlsen > Ronatoppen 6a, 4638 Kristiansand > 95219547 > MSN: [email protected] > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
