Hi,

I'm pretty sure it's simple but I not used to low level stuff. What I want
to do is create a click event in the recently created button to remove its
parent div:

        qx.bom.Collection.query("#add_category_button").addListener("click",
function(e)
        {
             var html = "<div class='category'><input
name='cat[name]'/><input class='category_remove_button' type='button'
value='remover' /></div>";
             e.preventDefault();
             qx.bom.Collection.create(e.getTarget()).before(html); // is
there a cleaver way to do that?
             return false;
        }, this);

Adding:
  qx.bom.Collection.query(".category_remove_button").addListener("click",
function(e) { }, this);

doesn't help because the element is not created yet.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to