On 31 Oct 2008, at 15:19, Andrea Campagna wrote:
>
> Shandy Nantz wrote:
>
>> <%= link_to_remote('<span>Save</span>',
>> {:submit => "car_prefs", :update => 'account_car_prefs',
>> :complete => 'new Effect.Pulsate(\'account_car_prefs\');',
>> :url => {:action => 'car_prefs', :id => @account.id}},
>> :class => "squarebutton") %>
>>
>> My car_prefs div encapsulates all the textfields and dropdowns and
>> then
>> the :complete just updates another div - account_car_prefs - when the
>> action has completed. You might also try looking at the source to
>> make
>> sure that the html is being generated properly, I say this because it
>> seems more often then not, for me, that I always get the { } put in
>> the
>> wrong place when using additional options and you can also tell if
>> you
>> are using them wrong because the html doesn't get formed right.
>>
>> -S
>
> Hi Shandy,
>
> really thanks for your reply.... NOw it works!!!
> I was really SAD for the first answer :D now i'm better
Just so you're aware, the above does rely on javascript and the
prototype libraries - it won't work without javascript.
Fred
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---