PDA

View Full Version : can a link to confim call a custom javascript function


clem_c_rock
May 3rd, 2007, 02:51 AM
Hello - I have a custom javascript confirm function that I wanted to add to a link_to method.

The function replaces specific text fields depending if the user chooses cancel or ok.

Can this be done?

rob
May 4th, 2007, 09:04 PM
You can use:

<%= link_to_function "Link Text Here", "functionhere()" %>