That's a handy suggestion. The point of my post was in another direction: that at least some of the possible situations in which you might find yourself wishing for a button_to_remote helper, are actually clues that you're trying to do something the hard way, That was exactly the case in my situation, where I was trying to accomplish something with two round trips from view to controller and back which I could have done directly in the view, using the combination of button_to_function and update_element_function. That's trivial to those with more experience, but others whose search results lead them to read this thread might be just as early in the process of grasping AJAX as I was yesterday.
Thanks for the CSS idea too. On Feb 18, 9:38 am, Cliff Wells <[EMAIL PROTECTED]> wrote: > On Sun, 2008-02-17 at 13:06 -0800, Eric Ongerth wrote: > > So, you're thinking, "OK, we have link_to_remote, which is what I've > > already used successfully to get one of my controllers to send back > > some text into my <div>, AJAX-style. Therefore why no > > button_to_remote? Why can I only do this with a plain text link and > > not with a stylish button?" > > Or just use CSS to style the link to look like a button? Lots of people > do this anyway since styling buttons isn't well supported across > browsers. > > Cliff --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
