link_to_remote does what it says, that is liking to a remote
action.
If you just want to generate the effect, you can do:
link_to_function 'Close',
visual_effect(:fade,'div_to_close')
With edge it's also possible to use blocks as in:
link_to_function 'Close' { |page| page
['div_to_close'].visual_effect :fade }
See the link_to_function docs at
http://api.rubyonrails.org/classes/ActionView/Helpers/
JavaScriptHelper.html#M000520
Best,
Thomas
Am 04.09.2006 um 15:45 schrieb mich:
>
> Is it possible to have a link_to_remote() callm without
an action.. ?
>
> Fx.
>
> link_to_remote 'Close', :update =>
'div_to_close', :url => {},
> :complete => visual_effect(:fade, 'div_to_close')
>
> Though, with the above I get a NoMethod Error, I also
tried with :url
> => {:action => nil} - albeit, also without
success.
>
> Is there a way, or will I have to add an empty action
to my controller
> ?
>
> /mich
>
>
> >
--
Thomas Fuchs
wollzelle
http://www.wollzelle.com
questentier on AIM
madrobby on irc.freenode.net
http://www.fluxiom.com
:: online digital asset management
http://script.aculo.us
:: Web 2.0 JavaScript
http://mir.aculo.us ::
Where no web developer has gone before
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---
|