After playing around for a while I came up with this. Seems to work.



var textFields = getElements(d,'QxTextField');



function getElements(doc,type)

{

    var elements = new Array();

    var children = doc.getChildren();

    index = 0;

                        

    for (var i=0; i<children.length; i++)

    {

        if(children[i].classname == type)

            elements[index++] = children[i];      

    }

    return elements;

}







 --- On Mon 07/03, Andreas Ecker < [EMAIL PROTECTED] > wrote:

From: Andreas Ecker [mailto: [EMAIL PROTECTED]

To: qooxdoo-devel@lists.sourceforge.net

     Cc: [EMAIL PROTECTED]

Date: Mon, 03 Jul 2006 12:47:39 +0200

Subject: Re: [qooxdoo-devel] List of all QxTextFields



Howdy!Bob Manc wrote:> Is there an easy way to get an array of all QxTextFields 
in a document?No, sorry, no convenient built-in form support, yet. It should be 
fairly easy though, if you just keep references to all the QxTextFields 
instances you created and added.Bye,Andreas

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to