#1400 new
Ernst Molitor

Iteration failure on change from 1.7.0 to 1.7.1

Reported by Ernst Molitor | October 2nd, 2012 @ 02:06 PM

In a form with a number of input fields of two types identically labelled "id=abres" and "id=mhkres", respectively, I have used this function to show or hide the fields:

function ToggleMHK(s) {

var l = $$('#mhkres');
var cl = $$('#copymhk');
var a = $$('#abres');
//alert('no of MHK fields: ' + l.size());
//alert('value: ' + $(s).getValue());
if ($(s).getValue()!=null)
  l.each (function(i) { i.show() });
  cl.each (function(i) { i.show() });
   l.each (function(i) { i.hide() });
   cl.each (function(i) { i.hide() });
if (a.size()>0)
  var content;
  a.each (function(c) {
    if (content.empty())
      throw $break;


After substituting Prototype 1.7.1 for 1.7.0, this code stopped working. Just the first
field is affected by calling this function now.

Best regards,


Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket