children

find the children in jquery

i have a tree structure,there is an unordered list(ul) in that tree.i have li items in it,and in that li items it could be a span or an ul list. this is one part of my codes : <li id="main_li"> <div class="first_division"></div> <span>products</span> <ul style="display: block...

[C++] Parent-Child scheme

I'm writing a class that holds a pointer to a parent object of the same type (think Qt's QObject system). Each object has one parent, and the parent should not be destroyed when a child is destroyed (obviously). class MyClass { public: MyClass(const MyClass* ptr_parent): parent(parent){}; ~MyClass(){ delete[] a_children; }; priv...

Iterate through all form fields within a specified DIV tag.

I need to be able to iterate through all the form fields within a specified DIV tag. Basically, any given DIV tag can have multiple form fields (which is easy enough to parse through), but it can also any number of tables or even additional DIV tags (adding additional levels of hierarchical layering). I've written a basic function that...

jQuery - Cycling through child elements

Hi, I have a series of select boxes within a table like so: <tr> <td><select></select></td> <td><select></select></td> <td><select></select></td> <td><select></select></td> </tr> With about 10 rows. I'm trying to reset all of the select boxes in the row to a default value, but having trouble with the syntax, can anyone help? This i...

Children in Enumeration

Hello I have a enumeration for elements in a JTree When I find some specific element in this JTree, I want to check it's children. Do the method children() in a Enumeration check it's grandcildren too? For example, let's supose this JTree, considering the identation as new levels of the tree: Fruits apple grape orange peach pinea...

jQuery Children length of an ol

I am trying to count the child elements of an OL jQuery : $(document).ready(function(){ $("#my_select").change(function(){ alert($("#ol3").children.length); });}); HTML: <ol id="ol1"> <li class="2">Location 1-1</li> </ol> <ol id="ol2"> <li class="15">Location 2-1</li> <li class...

Close current UserControl

I have a Window1.xaml main Window and after same event I display a UserControl EditFile.xaml The code behind is: public static int whichSelected = -1; private void button1_Click(object sender, RoutedEventArgs e) { //searchEditPanel.Children.Clear(); whichSelected = listViewFiles.SelectedIndex; searchEditPanel.Children.Add(_E...

CakePHP 3-level-deep model associatons

Hi, I am relatively new to CakePHP, I am doing fine with the documentation, but I've been trying to find a way out to this problem for weeks and I don't seem to find the solution, I am sure it is easy and maybe even automagicaly doable, but I just don't know how to find it (maybe I don't know the jargon for these kind of things) My mode...

visual c editor for kids

does anyone know of a visual programming tool that could be adapted for children (kids age 7-12) so that they can generate c programs to control device? ...

Updating cached counts in MySQL

In order to fix a bug, I have to iterate over all the rows in a table, updating a cached count of children to what its real value should be. The structure of the things in the table form a tree. In rails, the following does what I want: Thing.all.each do |th| Thing.connection.update( " UPDATE #{Thing.quoted_table_name} ...

jQuery child selector help

There must be a better way to select this element. Can someone please help me out. I've tried nth-child and last-child, but I'm not getting it. Here's my code: <li> <div class="pic" style="width:300px; text-align:center;"> <img src='path/to/my/image.jpg' /> </div> <p> <span title="<?php echo $media_title; ...

How to get first level of children by LINQ

I have such XMl <root> <list> <list> <topic></topic> <topic></topic> </list> <topic></topic> <topic></topic> </list> <topic></topic> <topic></topic> <topic></topic> </root> I need to get the first level of children: <list></list> <topic></topic> <topic></topi...

Using php to create a Folder select list - including child folders?

Hi all, I'm trying to use scandir to display a select list of folders listed in a specific directory (which works fine) however, I need it to also add the child folders (if there are any) into my select list. If anyone could help me, that would be great! This is the structure I want: <option>folder 1</option> <option> --child 1</opti...

Any good java 2d ui's for a custom cms that aren't generally known about?

I am looking for a general java ui that specializes in a cms system that is open source. My main target is just creating a system that children K through 12 can log in, play games, take quizzes, and submit scores to teachers. ...

cannot access child element - jquery

Hello. I have a HTML like <div class="a"> <div class="b"> something </div> <div class="c"> <div class="subC"> i want to access </div> </div> </div> and jquery like $('.a').hover(function(){ $(this).children('.subC').fadeOut(); }) I Want to access the class "subC" but above i...

as3: how to use grandchildren? ex. getChildByName("name").getChildByName("name2")

is it possible to get dynamically created children of a display object instance in action script 3 ? . example trace(_view.getChildByName("name")) = returns name of display object (success) . trace(_view.getChildByName("name").getChildByName("name2") = returns error 1061 . thanks a lot and have a nice weekend ! ...

How do you obtain a SvnLogEventArgs childs revision number in SharpSVN?

Hello, I have been working with SharpSVN quite a bit lately and I'm currently trying to obtain all of a revisions children's revision numbers. I see that using SvnLogEventArgs.HasChildren I can verify that they exist but it need the actual numbers of the children below it. I've been looking at the SvnClient object and see a GetMergesMerg...

Entity Framework one to many relationship save problem

Hi people, I've been digging in the posts in here and on google and couldn't find anything helping me to solve a problem I have with saving children entities on an existing entity. Let's say I have a shopping cart that will hold items, that means I have a ShoppingCart entity which has ShoppingCartItem entity collection. In my contr...

How do I change the css of a child of $(this)

I have a page of search results, each of which has an icon to add each result to a group (listed on the page in a hidden UL element: display:none;). Right now it works... but when I click on the icon for one result listing... the UL appears under every single result. I need it to only show up for the result listing that I am clicking t...

jQuery - How do you select children of children when in the context of 'this'?

On rolling over a wrapper div, I need different nested children to do different things. One div needs to fade to one level of opacity, another div needs to do another thing. It's all wrapped in quite a lot of stuff that i can't tamper with. I have NO idea how to call children in children.... I have tried every frikkin combo of jQuery...