Displaying 2 results from an estimated 2 matches for "chkbox".
Did you mean:
chekbox
2005 Oct 27
5
Problem passing event object
...with an Ajax.Request. I can''t figure out how I
can pass an event (an onclick on a checkbox) which causes the Ajax
Request, to be recognized in an onSuccess function. Here''s my
simplified code:
var RequiredField = Class.create();
RequiredField.prototype = {
initialize: function(chkbox) {
this.chkbox = chkbox;
this.chkbox.onclick = this.switchRequired.bindAsEventListener(this);
},
switchRequired: function(evt) {
this.evt = evt; // Set the event to a property
alert(this.evt);
var params = $F(this.chkbox);
var myAjax = new Ajax.Request(''server/checkRequired.h...
2006 Apr 22
0
Checkboxes get reset in sortable element in IE
Hi,
I am creating a list of checkboxes and text using this code:
<% count = 0 %>
<ul id="fields_list">
<% fields_ary.length.times do %>
<%= "<li id=''item" %> <%= count %> <%= "''><span class=''chkBox''> <input
type=''checkbox''></span><span class=''chkText''> " + fields_ary[count] +
" </span></li>" %>
<% count = count+1 %>
<% end %>
</ul>
<%= sortable_element("fields_list&...