[Lift] Re: Comet Chat
Thanks for your answers David and Wilson. mvh Bjarte On Mon, Aug 24, 2009 at 9:39 PM, David Pollak wrote: > > > On Mon, Aug 24, 2009 at 12:20 PM, Wilson MacGyver > wrote: >> >> Hi Bjarte, >> >> I am the one who wrote that post. It came out of a 1 hour presentation >> that I did for my local java user group to show what lift can do. So it >> was very minimal. Since most people attending are new to both >> Scala and Lift. >> >> I second David's suggestion. For a more full featured version >> check out >> >> http://demo.liftweb.net/chat >> >> In fact http://demo.liftweb.net/ has quite a bit of example. >> And I believe all the code are also available from David Pollak's >> github repo. > > All the demo.liftweb.net code is part of the Lift source distribution found > at http://github.com/dpp/liftweb/tree/master > >> >> Thanks, >> Mac >> >> On Mon, Aug 24, 2009 at 12:05 PM, Bjarte Stien >> Karlsen 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? >> > >> > -- >> > Bjarte Stien Karlsen >> > Ronatoppen 6a, 4638 Kristiansand >> > 95219547 >> > MSN: m...@ibjarte.com >> > >> > > >> > >> >> >> >> -- >> Omnem crede diem tibi diluxisse supremum. >> >> > > > > -- > 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 > > > > -- Bjarte Stien Karlsen Ronatoppen 6a, 4638 Kristiansand 95219547 MSN: m...@ibjarte.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Comet Chat
On Mon, Aug 24, 2009 at 12:20 PM, Wilson MacGyver wrote: > > Hi Bjarte, > > I am the one who wrote that post. It came out of a 1 hour presentation > that I did for my local java user group to show what lift can do. So it > was very minimal. Since most people attending are new to both > Scala and Lift. > > I second David's suggestion. For a more full featured version > check out > > http://demo.liftweb.net/chat > > In fact http://demo.liftweb.net/ has quite a bit of example. > And I believe all the code are also available from David Pollak's > github repo. All the demo.liftweb.net code is part of the Lift source distribution found at http://github.com/dpp/liftweb/tree/master > > > Thanks, > Mac > > On Mon, Aug 24, 2009 at 12:05 PM, Bjarte Stien > Karlsen 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? > > > > -- > > Bjarte Stien Karlsen > > Ronatoppen 6a, 4638 Kristiansand > > 95219547 > > MSN: m...@ibjarte.com > > > > > > > > > > > -- > Omnem crede diem tibi diluxisse supremum. > > > > -- 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Comet Chat
Hi Bjarte, I am the one who wrote that post. It came out of a 1 hour presentation that I did for my local java user group to show what lift can do. So it was very minimal. Since most people attending are new to both Scala and Lift. I second David's suggestion. For a more full featured version check out http://demo.liftweb.net/chat In fact http://demo.liftweb.net/ has quite a bit of example. And I believe all the code are also available from David Pollak's github repo. Thanks, Mac On Mon, Aug 24, 2009 at 12:05 PM, Bjarte Stien Karlsen 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? > > -- > Bjarte Stien Karlsen > Ronatoppen 6a, 4638 Kristiansand > 95219547 > MSN: m...@ibjarte.com > > > > -- Omnem crede diem tibi diluxisse supremum. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Comet Chat
On Mon, Aug 24, 2009 at 9:05 AM, Bjarte Stien Karlsen < bjarte.stien.karl...@gmail.com> 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: m...@ibjarte.com > > > > -- 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---