Jay Levitt wrote:
I know you have a workaround now, but I was still digging to see what
caused this, and discovered that it seems to be a Prototype bug! I'm
not sure exactly where, yet, but testing.js (attached) uses Prototype,
and exhibits the bug in Firefox. testing2.js doesn't, and doesn't!
Argh. Never mind. (if the attachments even came through - I seem to be
blocking .js.) I had missed one reference to a Prototype function and
didn't catch the JS error. That function was Field.focus(), which of
course kicks off the whole bug!
If anyone's curious, the degenerate JS fail case is below. I'll submit
a Firefox bug in the a.m. after I have another look. You can call it
with onclick='enterEditMode(this)'.
function enterEditMode(obj) {
var form = document.createElement("form");
var editField = document.createElement("input");
form.appendChild(editField);
obj.parentNode.insertBefore(form, obj);
editField.focus();
};
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs