Re: [Lift] Setting cookie with ajax link
Amazing response-time as always :) Anyone interested can find the example here: http://github.com/mads379/reproducable-exmaple-of-cookie-bug--Lift- and ticket here: http://www.assembla.com/spaces/liftweb/tickets/386 On 02/03/2010, at 19.45, David Pollak wrote: > > > On Tue, Mar 2, 2010 at 10:41 AM, Mads Hartmann wrote: > Hello everyone, > I can't seem to get my lift app to set a cookie when clicking an ajax- > link. By looking around the list it looks like it's possible but i've > failed to get it working. Right now my test-code looks like this: > > bind("banner", xhtml, "hideLink" -> a(() => { >S.addCookie(HTTPCookie("display","false")) >JsHideId("banner") >},Text("test"))) > > That should work. Please put together a reproducable example project, put it > on GitHub and open a ticket. > > > Thanks > Mads Hartmann > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@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, 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 lift...@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. -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@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.
Re: [Lift] Setting cookie with ajax link
On Tue, Mar 2, 2010 at 10:41 AM, Mads Hartmann wrote: > Hello everyone, > I can't seem to get my lift app to set a cookie when clicking an ajax- > link. By looking around the list it looks like it's possible but i've > failed to get it working. Right now my test-code looks like this: > > bind("banner", xhtml, "hideLink" -> a(() => { >S.addCookie(HTTPCookie("display","false")) >JsHideId("banner") >},Text("test"))) > That should work. Please put together a reproducable example project, put it on GitHub and open a ticket. > > Thanks > Mads Hartmann > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@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, 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 lift...@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] Setting cookie with ajax link
Hello everyone, I can't seem to get my lift app to set a cookie when clicking an ajax- link. By looking around the list it looks like it's possible but i've failed to get it working. Right now my test-code looks like this: bind("banner", xhtml, "hideLink" -> a(() => { S.addCookie(HTTPCookie("display","false")) JsHideId("banner") },Text("test"))) Thanks Mads Hartmann -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@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.