[Dojo-interest] removeChildren Example

Joey Wong joey at crazycoder.com
Thu Dec 21 09:17:15 MST 2006


Hi,

You may use the following method to destroy childrens:

function destroyChildren(node)
{
	while(node.hasChildNodes()){ dojo.dom.destroyNode(node.firstChild); }
}

Best regards,
--
Joey Wong
joey at crazycoder.com

On Thursday 21 December 2006 11:45 pm, Keith Pope wrote:
> Hi,
>
> I am using:
>
> var rm = dojo.dom.removeChildren( node1 );
>
> In the API it says you must call destroyNode after, has anyone got an
> example of how this should be done. I assumed there would be a
> destroyChildren method but there is not.
>
> Thx
>
> Keith
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> allpay.net Limited, Fortis et Fides, Whitestone Business Park, Whitestone,
> Hereford, HR1 3SE. Telephone: 0870 243 3434, Fax: 0870 243 6041. Website:
> www.allpay.net Email: enquiries at allpay.net
> **********************************************************************
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest


More information about the Dojo-interest mailing list