Displaying 2 results from an estimated 2 matches for "onlick".
Did you mean:
onclick
2007 Jan 24
7
Differences between assert_tag and assert_select
Hi all,
I can't seem to make assert_select work for the more complex cases for me.
Here's a sample:
# View
<%= link_to_remote 'Add new', :url => new_phone_url, :submit => 'phones_head' %>
# Generated code:
<a href="#" onclick="new
Ajax.Request('http://test.host/admin/parties/phone/new',
{asynchronous:true, evalScripts:true,
2007 Dec 04
6
Problem preventing double click with ajax submit button
For a regular form I use the :onlick option to disable the submit button
after the first click in order to prevent double clicks (leading to
double entries):
<% form_tag :action => ''create'' do %>
<%= submit_tag "Create", :onclick =>
"this.disabled=true,this.form.submit();"%>
I&...