3.0.0

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
December 1,
/********************************************************************
/////////////////////////////////////////////////////////////////////

    Combo box object is not completed yet

/////////////////////////////////////////////////////////////////////
********************************************************************/


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
December 1,
Ahhhh, that wasn't quite the answer I was looking for, but thanks for letting me know. =)
wombat
December 2,
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
December 2,
Still no news of OnBlur() method? not only for Combo, but also for Input
Jean Michel (Paris)
January 15,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.