Displaying 1 result from an estimated 1 matches for "set_box_properties".
2008 Apr 07
5
trying to use Ajax.InPlaceEditor
...k }
else
format.html { render :action => "edit" }
format.xml { render :xml => @box.errors, :status
=> :unprocessable_entity }
end
end
end
In my RJS file, I just try to update my box, and update the field with
the new value.
page << "set_box_properties(''#{@box.nom}'',''#{ @box.color}'', #{@box.x},
#{@box.y}, #{@box.width}, #{@box.height});"
page[''edit_field''].value = "red"
I tried setting htmlResponse: false, I think that solved the problem,
but now I just see "Saving . . . ....