:: Forum >>
onblur, onchange dont work?
Hi,
I'm trying to capture data changes to a regular combo, but I can't get the action handlers to work as expected. I am able to catch the onclick and onmouseup events, but those aren't really what I want. Does anyone know how to implement this? Thanks for any help.
var obj = new AW.UI.Combo;
obj.setId(id);
obj.setItemText(textArray);
obj.setItemValue(valueArray);
obj.setItemCount(Math.max(valueArray.length, textArray.length));
obj.setEvent("onblur", function(event){alert("blur");});
obj.setEvent("onchange", function(event){alert("change");});
wombat
Thursday, December 1, 2005
I wouldn't try to do anything to serious with it yet as it is not working well. Things you can't seem to get working may not be implimented yet. Once it is finished, you will be able to look at the source code for COMBO.HTM in the QuickRef folder and see the correct methods to use for asigning actions to the control.
Jim Hunter
Thursday, December 1, 2005
Ahhhh, that wasn't quite the answer I was looking for, but thanks for letting me know. =)
wombat
Friday, December 2, 2005
I have found a work-around:
obj.onControlTextChanged = function() { alert('change'); };
I would prefer using setEvent(), but I'll take what I can get for now.
wombat
Friday, December 2, 2005
Still no news of OnBlur() method? not only for Combo, but also for Input
Jean Michel (Paris)
Sunday, January 15, 2006
This topic is archived.
Back to support forum
Forum search