Hey, a combo bos is not a list with a textfield, its more a textfield with a list. ;) This said, the combo box docuses on the text input and not on the list items. You can still access the list using the same child control trick. But be aware of the changeSelection event because the list changes its selection on mouse over which means you might get more events than expected. Maybe you need to check for the disappear event and hack things together. Regards, Martin
Am 23.07.2012 um 17:25 schrieb Ravi Lal: > Great that worked thanks. > > A related question - which event can I listen to for when an listitem is > selected in the combo box ? I can't see a distinct one other than > changeValue > > Thanks in advnace > > > > From: Martin Wittemann <[email protected]> > To: qooxdoo Development <[email protected]> > Date: 23/07/2012 15:31 > Subject: Re: [qooxdoo-devel] Detecting key presses in a combobox > for autocomplete > > > > Hey, > you can listen to the changeValue event on the combo box but you have to > tell the textfield of the combobox to update its value live: > > combobox.getChildControl("textfield").setLiveUpdate(true); > > That should give you a changeValue event on every keypress. > Regards, > Martin > > Am 23.07.2012 um 15:45 schrieb Ravi Lal: > >> Hi, >> >> I am trying to implement auto-complete functionality (wish this was > built >> in) for a combo box which will listen to key presses as the user is >> typing and then fire an AJAX request whic populates the options >> accordingly. >> >> However I'm having trouble getting the event that I need all the > "keyxxx" >> and "valueChanged" events only fire once and then when focus is regained > - >> not on every single keypress. >> >> How can I add a listener that will fire on every key press? >> >> Thanks >> >> >> _______________________________________________________________________ >> The BMJ Group is one of the world's most trusted providers of medical > information for doctors, researchers, health care workers and patients > group.bmj.com. This email and any attachments are confidential. If you > have received this email in error, please delete it and kindly notify us. > If the email contains personal views then the BMJ Group accepts no > responsibility for these statements. The recipient should check this > email and attachments for viruses because the BMJ Group accepts no > liability for any damage caused by viruses. Emails sent or received by > the BMJ Group may be monitored for size, traffic, distribution and > content. BMJ Publishing Group Limited trading as BMJ Group. A private > limited company, registered in England and Wales under registration number > 03102371. Registered office: BMA House, Tavistock Square, London WC1H > 9JR, UK. >> _______________________________________________________________________ >> >> > ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. > Discussions >> will include endpoint security, mobile security and the latest in > malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ______________________________________________________________________ > This email has been scanned by the Symantec Email Security.cloud service. > For more information please visit http://www.symanteccloud.com > ______________________________________________________________________ > > > > _______________________________________________________________________ > The BMJ Group is one of the world's most trusted providers of medical > information for doctors, researchers, health care workers and patients > group.bmj.com. This email and any attachments are confidential. If you have > received this email in error, please delete it and kindly notify us. If the > email contains personal views then the BMJ Group accepts no responsibility > for these statements. The recipient should check this email and attachments > for viruses because the BMJ Group accepts no liability for any damage caused > by viruses. Emails sent or received by the BMJ Group may be monitored for > size, traffic, distribution and content. BMJ Publishing Group Limited > trading as BMJ Group. A private limited company, registered in England and > Wales under registration number 03102371. Registered office: BMA House, > Tavistock Square, London WC1H 9JR, UK. > _______________________________________________________________________ > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
