[Rails] Re: AJAX: link_to_remote creates a post request

2009-04-13 Thread Jon Hope

Thanks guys, major brain malfunction there!
-- 
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: AJAX: link_to_remote creates a post request

2009-04-13 Thread Freddy Andersen

You are looking for link_to_remote that will give you the ability to
show/hide a div.

Here is an example to just show a div

link_to_function("show form", nil) { |page|
page.visual_effect :toggle_blind, 'form_div' }

If you want you can have a hide link inside the div that his hidden so
they can close the form again..
--~--~-~--~~~---~--~~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: AJAX: link_to_remote creates a post request

2009-04-13 Thread Hassan Schroeder

On Mon, Apr 13, 2009 at 2:15 PM, Jon Hope
 wrote:

> Is there any way to use link_to_remote to create AJAX animations and
> show/hide elements without creating any request to the server?

AJAX /means/ creating a request to the server. If you just want to do
"animations and show/hide elements" use plain old JavaScript.

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---