[Proto-Scripty] My code does not work

2010-07-03 Thread ALO
Dear Concern, I am a fan of Prototype. Recently when I was going to use Ajax.Updater to update the value of a input (text) value it did not work. Please consider my following code and please provide me a good solution. input name=txtItem type=text id=txtItem / input name=txtCostingUnit type=text

[Proto-Scripty] Re: My code does not work

2010-07-03 Thread T.J. Crowder
Hi, Ajax.Updater (and the underlying Element#update that it uses) are for updating the *contents* of an element, not the *value* of an input field. For that you want the Form.Element#setValue function[1]. Off- the-cuff, I think your code would need to be changed like this: function