Categories | Question details Back To List | ||
pass 'event' object as parameter. 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, <select id="hh" onkeypress="Hello(event);"> <option>one</option> <option>two</option> </select> how can this be achieved using dhtml. I tried the same way but it says undefined. plz help me . Thanku in advance. Answer posted by Support on Jan 07, 2009 15:00 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 Answer posted by sirisha on Jan 07, 2009 20:35 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? Answer posted by Support on Jan 10, 2009 09:36 combo.attachEvent("onKeyPressed",function(ev){ alert(ev.keyCode); }); Answer posted by sirisha on Feb 12, 2009 20:31 Please tell how can i get the sorted list. i need to display sorted list in combo when slected for all options.http://dhtmlx.com/docs/products/kb/imgs/_button_post_answer.gif"> How can i achive this with dhtml autocomplete combo box. Answer posted by Alex (support) on Feb 13, 2009 03:50 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). |