Fugeddit!

Found a post about using generic javascript event names. So this works:

var txt_email = new ftmDataEntryTextfield('email',50,150);
txt_email.addEventListener("blur", function(e) {
  txt_email.setValue(txt_email.getValue()+'@domain.co.nz');
});

  ----- Original Message ----- 
  From: Aaron Cooper 
  To: [email protected] 
  Sent: Thursday, December 07, 2006 12:31 PM
  Subject: [qooxdoo-devel] TextFeild focus events


  Hi all,

  Can't see anything on this in the archive, and I'm sure it's simple.

  I have a textFeild for entering an email address. I want to add an event 
listener for focusOut so that the domain part of the address is automatically 
added. 

  Here is my code, I have found the FocusEvent class in the API but cannot work 
out how to use it in this case. Can someone let me know please?

  var txt_email = new ftmDataEntryTextfield('email',50,150);
  txt_email.addEventListener(new qx.event.type.FocusEvent(3), function(e) {
    txt_email.setValue(txt_email.getValue()+'@domain.co.nz');
  });


------------------------------------------------------------------------------


  -------------------------------------------------------------------------
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT & business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


------------------------------------------------------------------------------


  _______________________________________________
  qooxdoo-devel mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to