On May 21, 2011, at 9:27 AM, Mohnish J. wrote:

How can i display the same onclick of a button without
making/getting the entire page to reload..

With Event.preventDefault(). If in Prototype, with Event.stop(). Be sure to wrap this method in a conditional, otherwise you have just killed the button and it will never bubble to submit the form again.

Walter

--
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.

Reply via email to