children

NHibernate save / update event listeners: listening for child object saves

I have an Area object which has many SubArea children: public class Area { ... public virtual IList<SubArea> SubAreas { get; set; } } he children are mapped as a uni-directional non-inverse relationship: public class AreaMapping : ClassMap<Area> { public AreaMapping() { HasMany(x => x. SubAreas).Not.Inverse()...

Order of QObject children (strategy question)

For one of my projects I have a tree of QObject derived objects, which utilize QObject's parent/child functionality to build the tree. This is very useful, since I make use of signals and slots, use Qt's guarded pointers and expect parent objects to delete children when they are deleted. So far so good. Unfortunately now my project req...

How would i make another application's child window into a tab? (C#)

For instance, I have an application that has a main window and then child windows inside of it. http://screenshots.rd.to/sn/e3hek/sapienfullwindow.png http://screenshots.rd.to/sn/e3hek/appscreen8.png What i need is to grab each individual child window of that application, and display them as tabs in my application, or on a panel's handle...

menu - if has children ->turn off links; if doesn't has children -> link on?

Hi, how do I do something like that in a menu? If has children → turn off links; if doesn't has children → link on? Can anyone help me????! :) I was trying like that: over = function(){ var $$ = $(this), menu = getMenu($$); if ("li:has(ul)") { clearTimeout(menu.sfTimer); $$.showSuperfishUl().siblings().hideSup...

Flex - Grouping Field on XML With Multiple Child Nodes

Hi, I have a Flex AdvancedDataGrid which is fed XML like this: <documents> <document> <name>Jake</name> <skills> <skill>Flex</skill> <skill>Domino</skill> <skill>ASP.NET</skill> </skills> <document> <document> <name>Trevor</name> <skills> <skill>Flex</skill> <skill>C++</skill> <skill>ASP.NET</sk...

How to check if element has any children in Javascript?

Simple question, I have an element which I am grabbing via elementById(). How do I check if it has any children? ...

When should a child programmer move on from Alice or Scratch

Background: I have been teaching a short course for 12-14 year olds interested in learning how to program video games. We have been using Alice now for 3 years. In this time we have used both Alice and Story Telling Alice. Question: When is the right time to move on from Alice (or Scratch if that is what you prefer) and move the stude...

MooTools: getChildren() INCLUDING text nodes?

I'd like to get all the children of an element, including text nodes. How can I do this in MooTools? The documentation at mootools.net explicitly says that getChildren() excludes text nodes. ...

jQuery figuring out if parent has lost 'focus'

I'm stuck on figuring out the logic to make a drop down menu keyboard accessible. The HTML is structured as such (extra class names used for clarity): <ul> <li class="primaryMenuItem"> <a href="">Link 1</a> <ul class="popUpMenu"> <li><a href="">Sub Link 1</a></li> <li><a href="">Sub Link 2</a...

Javascript MouseOver / MouseOut children events

I have an element with some child elements. When the mouse leaves the parent element I want to hide the parent and it's children. Problem I'm having is that when I hover over any of the children, the mouseout event is being fired. What's the best way to prevent this? I really only want the event to fire when the mouse is not within the p...

Fixing pointers in binary tree delete function (node with 2 children)

Hi, I'm a having a little trouble thinking how the hell do I fix the appropriate pointers when trying to delete a node from a binary tree where that node has 2 children. I understand the basic concept and I'm basically just having trouble fixing the pointers... So, basically, my delete function is mostly done and every case is already...

Apply the REL attibute automatically to posts using jQuery

Edited: I mean grouping as giving the same REL attibute to all IMGs in the same post, but each post has different REL as the example at the end of this question. So, I need to do the following: <div id="Blog1" class="widget Blog"> <div class="blog-posts hfeed"> <div class="post hentry uncustomized-post-template"> <a name="8829400899632...

jquery disable multiple input children of a div

I want do do something like below from a checkbox, There's a checkbox on every row, and I'd like to disable all the inputfields on a row with the class .room when the checkbox is clicked. function toggleStatus(link) { $(link).closest(".room").children(':input').attr('disabled', true); } also tried function toggleStatus(link) { ...

jQuery - IE returning 0 children

Hi, I quickly made this function for a script im using: $.fn.liCount = function(){ var i=0; $(this).children().each(function(){ i++; }); return Number(i); } problem is IE returns 0, anyone know why? alert( $("ul").liCount() ); edit: <div id="prev-quotes"> <ul id="quote-list"> <li id="quote_conte...

JavaScript Traverse Table Issue

Why does this script bail out (IE) or stick (FF) at the first table cell containing text that it finds? <!html> <head> <script type="text/javascript"> function CheckChildren(obj) { alert(obj.id + ' ' + obj.tagName + ' ' + obj.childNodes.length); for ( i = 0; i < obj.childNodes.length; i++) { Check...

What is a good programming language to start my Grade 1 son learning?

Possible Duplicates: How to get kids into programming Suggestions on starting a child programming. Is there a really simple programming language that I can use to teach my 6 year old son concepts of programming, syntax and logic? ...

PHP: Recursively get children of parent

I have a function which gets the ids of all children of a parent from my DB. So, if I looked up id 7, it might return an array with 5, 6 and 10. What I then want to do, is recursively find the children of those returned ids, and so on, to the final depth of the children. I have tried to write a function to do this, but I am getting co...

JQuery nested ul-li tree, searching and applying

I have a tree of ul's that I want to search with jQuery and apply styles to those matching so this: Regional |-InternetAccessGroup |-Wasters |-Packaging |-Users |-Students |-Hello Fred |-Package Student |-Teachers |-Package Teacher ...

Writing a DTD: How to achieve this children setup

The element tasklist may contain at most one title and at most one description, additionally any number (incl. 0) task elements in any order. The naive approach is not applicable, since the order should not matter: <!ELEMENT tasklist (title?, description?, task*) > Alternatively, I could explicitly name all possible options: (title,...

Teaching programming to 4-year old

Possible Duplicate: How to get kids into programming I know, it's impossible. However, if little one should go and follow daddy's steps, he should begin early. I started with some Z80 based comp made in Yugoslavia, and were 10 years old... Then there was no 'net, no flash, no anything. Only tapes, screwdriver and hoping th...