Hello,
i want to pass ‘event’ object as parameter on keypress functionality.
How can i do it.
In html we can do thid way which returns the object,
one
two
how can this be achieved using dhtml.
I tried the same way but it says undefined.
plz help me .
Thanku in advance.
inner events of components provides a fixed set of parameters , there is no unified event object ( in case, when inner event related to real html event , html event object may be accessible but it differ for different events )
In most cases custom set of parameters provides all necessary info about event. If you have a situation when they are not enough - please provide more info
Ok, in simple…tell me how can i capture an keypess event.
Means on key press funtion i want the keycode(the code for the key i pressed).
how can i achieve this?
combo.attachEvent(“onKeyPressed”,function(ev){
alert(ev.keyCode);
});
Please tell how can i get the sorted list.
i need to display sorted list in combo when slected for all options.
How can i achive this with dhtml autocomplete combo box.
Unfortunately, combo doesn’t provide methods to sort options in it.
The list should be sorted before it loaded into the combo. It can be server-side sorting, for example, sorting using SQL command (in case of fetching data from the database).