search for: ondblclick

Displaying 2 results from an estimated 2 matches for "ondblclick".

Did you mean: dblclick
2009 Jun 23
7
can't get remote_function working on rails 2.3.2
I''ve tried moving the code around in different ways, but so far I haven''t gotten remote_function to work for me (I''m using Rails 2.3.2 on my Mac). I want to make an AJAX call when I double-click a word on my page, and the Javascript function is being called when the ondblclick event is fired, but nothing happens when it gets to my the "new Ajax.Request" part of my function. The Rails console doesn''t even show it as making a call to my controller. There is a DIV called "definition_box", so my remote_function call used to read like this: &lt...
2006 Oct 23
0
Invoking a remote (AJAX) action via double click
...of double-clicking on any of them to do a remote request to an action. In this case, I''d like to pop up a redbox that is a dialog about the item I clicked on. I found some example code like this: <%= image_tag "image.jpg", :class => "image", :ondblclick => "window.location.href = \"#{url_for(:controller => ''foo'', :action => ''bar'')}\";" %> But this will forward the window to the new page instead of making an AJAX request. Any ideas? Aubrey --~--~---------~--~----~----------...