Displaying 2 results from an estimated 2 matches for "clickm".
Did you mean:
click
2006 Feb 10
0
Behaviour.js and prototype Event.observe
say I have some code like this:
Behaviour.register({
''#clickme'' : function(el) {
Event.observe(el, ''click'', function(event) {
alert("clickme was clicked");
});
}
});
Behaviour.apply();
Behaviour.apply();
the element with the id of ''clickme'' will now have 3 onclick event observers.
Is there a w...
2012 Feb 29
4
how to use link_to with :remote=>true in rails 3.2.1
I m using Rails 3.2.1. how to use link_to with remote=>true
--------------------------------------------
My Method in Controller
def clickme
@clk = "you click me"
respond_to do |format|
format.js { render :layout=>false }
end
end
--------------------------------------------
My View
In my new.html.erb file
<%= link_to "click here", {:action=>"clickme"}, {:remote => true,
:...