search for: get_attribute_by_id

Displaying 1 result from an estimated 1 matches for "get_attribute_by_id".

2006 Jun 18
2
using javascript to get an attribute using an ID
...i everyone, I''m trying to use ajax to update the selected value of a select element. Here''s what I have so far: function RailsModel(model_name) { this.model_name = model_name; } RailsModel.prototype.getAttributeById = function(attribute, id) { Ajax.Request(''/models/get_attribute_by_id/'' + this.model_name + ''/'' + attribute + ''/'' + id, { onSuccess:function(response){ this.currentValue = response.responseText; } } ); } var model = new R...