> <%= link_to("test dbl click", root_url, :ondblclick => "alert('Double
> Clicked');") %>
>
> the double click event is captured (alert displayed) but at the same
> time the home page is also displayed , is there a way to wait for the
> ok on the panel before executing the link?

<%= link_to("test dbl click", root_url, :ondblclick => "return  
confirm('Double
Clicked');") %>

Why the double click?  If you don't need that you can get away with:

<%= link_to("test confirmed click", root_url, :confirm => "Press OK to  
go to root url") %>

-philip

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

Reply via email to