Hi,
I am usign two selects, a master and a slave:
<%= select(“master”, “id”, @master) %>
also I made:
def index
@master = …
@slave= …
end
def update_slave_select
@slave= …
render(:partial => ‘select’)
end
and in _select.rhtml:
<%= select(“slave”, “id”, @slave) %>
This works fine in internet explorer, in firefox I have the following
javascript
error:
Error: element has no properties
Source File: http://localhost:3000/javascripts/prototype.js
Line: 1280
and the javascript code at prototype:
Form.Element = {
serialize: function(element) {
element = $(element);
var method = element.tagName.toLowerCase();
var parameter = Form.Element.Serializersmethod;
if (parameter) {
var key = encodeURIComponent(parameter[0]);
if (key.length == 0) return;
if (parameter[1].constructor != Array)
parameter[1] = [parameter[1]];
return parameter[1].map(function(value) {
return key + '=' + encodeURIComponent(value);
}).join('&');
}
},
getValue: function(element) {
element = $(element);
var method = element.tagName.toLowerCase();
var parameter = Form.Element.Serializersmethod;
if (parameter)
return parameter[1];
}
}
Any sugestion for solving this?
Thanks,
Paulo A.