Will have a look over the next few days. Thanks you very much.
Jono 2009/11/26 Derek Chen-Becker <dchenbec...@gmail.com> > I haven't tried it, but I'm pretty sure that if you give the button an id > you should be able to fire the text change from the AJAX handler. Something > like: > > import net.liftweb.http.js._ > import JE._ > > SHtml.ajaxButton("Click me!", () => { doSomethingServerSide(); > JsCmds.SetElemById("myButton", "Click me again!", "innerHtml")}, "id" -> > "myButton") > > That's off the top of my head, so let me know if that doesn't work. > > Derek > > On Tue, Nov 24, 2009 at 4:23 PM, Jonathan Ferguson <j...@spiralarm.com>wrote: > >> I've looked through the API and couldn't find anything that seemed >> suitable. >> >> We need an ajax button that when clicked will fire an event to the server >> and then toggle the button text. This could be by having two different >> buttons and only showing one. >> >> Cheers >> Jono >> >> -- >> 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<liftweb%2bunsubscr...@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<liftweb%2bunsubscr...@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.