How can I find the parent tr from the closest child tr e.g. from the second child tr, how can I get to the first parent tr? Below is the html table: <table> <tr class="menu"> <td><input type='text' class='parent' value='First Parent'></td> </tr> <tr class="submenu"> <td><input type='text' class='child' value='First Child'> </td> </tr> <tr class="submenu"> <td><input type='text' class='child' value='Second Child'> </td> </tr> <tr class="menu"> <td><input type='text' class='parent' value='Second Parent'></td> </tr> <tr class="submenu"> <td><input type='text' class='child' value='First Child'> </td> </tr> </table> I have tried the following JQuery code: $(this).closest('tr.submenu').closest('tr.menu').find('.parent').val(); $(this).closest('tr.submenu').parent('tr.menu').find('.parent').val(); $(this).closest('tr.menu').find('.parent').val(); $(this).closest('tr.submenu').prevUntil('tr.menu').find('.parent').val(); $(this).closest('tr.submenu').parentsUntil('tr.menu').find('.parent').val(); $(this).closest('tr.submenu').parents(':first-child').find('.parent').val(); All attempts have failed. How can I get the parent …

Member Avatar
Member Avatar
+1 forum 3

I have a couple child divs nested inside a parent div, and the children expand on hovering. Problem is that the neighbor div of the parent gets over-lapped by the children. I could just account for the size when the children are open and resize the parent div to that max height, but it would look much better if handled dynamically. Bassically: # HTML <body> <div id="Parent_1"> <div id="Child_1"> </div> <div id="Child_2"> </div> </div> <div id="Parent_2"> <div id="Child_3"> </div> <div id="Child_4"> </div> </div> </body> # CSS /* simplified example...the child elements are actually nested within a wrapper */ /* so …

Member Avatar
Member Avatar
+0 forum 2

My application requires a dialog box and a parent window, from the window proc of the parent window I'm trying to draw on the dialog box. How might I do this? Thank you for reading :)

Member Avatar
Member Avatar
+0 forum 11

Hi members, This is a program i wanted to implement semaphore between parent and child processes which are trying to access a shared variable called counter ... i dont know why it is not getting incremented during the child process !! someone help please !! #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <semaphore.h> #include <stdlib.h> #include <errno.h> #include <string.h> sem_t mutex; int counter; int main () pid_t child_pid; sem_init(&mutex, 0, 1); printf ("the main program process ID is %d\n", (int) getpid ()); child_pid = fork (); if (child_pid != 0) { printf ("This is the parent process, with id %d\n", …

Member Avatar
Member Avatar
+0 forum 2

Hi guys, I'm trying to work on a form with jquery. I have a table with 9 cells, 9 inputs and 9 delete links. I want to delete de particular cell on which i've clicked delete, but cannot figure it out how. I am able to delete the first element with value="1" but not the rest. <table cellspacing="50"> <tr> <td><input type="text" name="arr[]" value="1"><a id="del">Delete</a></td> <td><input type="text" name="arr[]" value="2"><a id="del">Delete</a></td> <td><input type="text" name="arr[]" value="3"><a id="del">Delete</a></td> </tr> <tr> <td><input type="text" name="arr[]" value="4"><a id="del">Delete</a></td> <td><input type="text" name="arr[]" value="5"><a id="del">Delete</a></td> <td><input type="text" name="arr[]" value="6"><a id="del">Delete</a></td> </tr> <tr> <td><input type="text" name="arr[]" value="7"><a id="del">Delete</a></td> <td><input type="text" …

Member Avatar
Member Avatar
+0 forum 5

Okay I am trying to write a program where a parent process creates three child processes. Also waits for each of them to finish. Here is my code: [code] #include <stdio.h> #include <unistd.h> main() { int i; // create 3 child processes for (i = 0; i < 3; i++) { if (fork() == 0) { printf("Child process no.%d with ID: %d created from parent process\n", i); break; } } // wait for each child process to finish } [/code] There is one error line "if (fork() == 0) {" What is wrong with that? I tried to run it …

Member Avatar
Member Avatar
+0 forum 6

Hi I'm having issue of understand how to **echo** a variable when the `class` is `extended`. I have **2** files. This is my **index.php** file: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>OOP Example</title> <?php include("class.php"); ?> </head> <body> <?php $mitch = new person("Mitch Last"); echo "Mitch's full name: " . $mitch->get_name();"</br>"; $last = new coworker("Last Mitch"); echo "</br>Last's full name: " . $last->get_name();"</br>"; $slim = new coworker("Slim Jim"); echo "</br>Slim's full name: " . $slim->get_name();"</br>"; ?> </body> </html> This is my **class.php** file: <?php class person { // To defined adding class properties are optional var $name; …

Member Avatar
Member Avatar
+4 forum 15

If a child process encounters exit(0) statement, where is this exit status returned in the parent process? Is there any variable associated with every process that holds this information? If not, how do children and parent processes communicate?

Member Avatar
Member Avatar
+0 forum 2

I just thought of this and was wondering if it is possible. So similar to how you can relatively reference a parent folder using ../. Is there a way to access a parent directory if a domain name is associated with a sub-folder. For instance, on my server, I have a certain web site on 192.168.1.23/Site. I have an associated shorter url connected to it. For instance site.co.nr. Is there a way to get to 192.168.1.23 (or there associated ethernet IP) home directory using relative addresses using site.co.nr? Maybe like ../site.co.nr? Or something like that? Sorry if this is stupid, …

Member Avatar
Member Avatar
+0 forum 3

Can anybody share the algorythm to perform inorder traversal of a binary search tree using parent node(without stack or recursion)

Member Avatar
Member Avatar
+0 forum 4

Hello Friends, I need help to disable the parent window form as soon as the user will open the child form.... for eg...consider daniweb...when we click on member login the background form gets grayed out.... Disabling the form is not the option cause it will just disable all the controls of the form....but I need a grayed out screen between the current child form and the parent form.... note - the parent form is not the MDI form...it is just a normal window form and when the child form is open and if the user clicks on the main form …

Member Avatar
Member Avatar
+0 forum 5

Good day to you all, am currently working on a windows application. I used sql compact edition for the database. But the first problem i got was that it kept giving me errors i copied and pasted to error code on google and I got an article that says I should change the cpu type from "Any CPU" to x86. That solved the error thingy. But each time I added things to the DB, closing and re-opening the app, or probably editing the DB schema always result to lost of all records. If I add a new record, I will …

Member Avatar
Member Avatar
+0 forum 4

I have an existing project developed in C#. The project now has potential to be viewed within a frame on another site - developed in another technology - which is why the frame solution is better than incorporating into the other site. If the other site is used, I need to focus my page on an anchor identified in the url of the parent page. My question: is it possible to test if the page is being viewed in a frame? If so, what control/tag do I use to test with? I have been testing page.parent, but, it does not …

Member Avatar
+0 forum 0

Ok, first let me explain what I try to do. I have a menu with some items containing a submenu. The submenu's should open when a parent is clicked and contains submenu's, and when traveling to another page (from the item clicked, for example a parent of submenu item), the submenu should remain active and visible. Now when I click on a parent item the submenu quickly blinks but is closed even as fast as it opens. I want the submenu to remain open when clicked on a parent that has a submenu, so users can easily navigate. So, here …

Member Avatar
Member Avatar
+0 forum 2

how to minimize child form inside of parent mdi form in vb.net...? I change the property of "IsMdiContainer" to "True". but when i minimize parent mdi form, it is not minimize the child form... Please help me. Regards Pra$ad.

Member Avatar
Member Avatar
+0 forum 2

Dear Daniwebbers, I have a problem regarding the calling of methods on a protected parent object from within a child object, the protected parent object being a child object of the same class. I have a class HostileArea, wich has a "protected DungeonRoom[][] dungeon", DungeonRoom being a child of HostileArea. From within one such DungeonRoom object in the dungeon variable, I want to get a function foo on another DungeonRoom in the dungeon variable. Only problem being, it won't let me. The IDE signals no problems, it's only with trying to access a parent object from within a same object …

Member Avatar
Member Avatar
+0 forum 5

Hey folks. Out of necessity (and against web standards, I know) I must have two div with the same ID on one page. I'm trying to dynamically update a database with Ajax and update this div with that info. But when i go to update the second divd (with the same ID) it changes the first. Any way I can target the specific div with some sort of child/parent/this code? Mucho appreciated. Code below: The div I'm trying to change is called "origassigned". [CODE] <script type="text/javascript"> function updateAssigned(str) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new …

Member Avatar
Member Avatar
+0 forum 8

Hey folks! I've been working on a site for several days trying my best to conquer the ever plaguing issue of creating a parent div that expands as the child divs inside it grow with their appropriate content. And, so everything is on the table, this is being built on a custom Wordpress site with significant modifications to the existing Twenty Ten theme templates/CSS/code that comes with Wordpress. I have honestly done my due diligence in searching forums here and via Google to discover the last piece of the puzzle that I simply cannot seem to crack. Here's the issue: …

Member Avatar
Member Avatar
+0 forum 3

hi, i am a newcomer in jsp. straight to the matter, my problem is, i have a parent page. one child pop-up is loaded from it say child1, and then next child child2 is loaded from child1. the problem is at the session out i need to close these two pop up and return to the parent. is it possible? thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

I am designing a lot of TCheckBox at runtime, and uses mathematical formulas for placing these in columns and rows afterwards on a form. I assign an on click event that is exactly the same on all of them, and everything work, except... Color. My OnClick event is made like this: [CODE] procedure TForm1.CheckBoxClicked(sender: TObject) ; begin if Sender is TCheckBox then begin WITH TCheckBox(Sender) DO BEGIN IF Color=clBtnFace THEN BEGIN Caption:='TESTER 1'; TCheckBox(Sender). Color:=clGreen; TCheckBox(Sender).Font.Color:=clGreen; Checked:=TRUE; END ELSE IF Color=clGreen THEN BEGIN Caption:='TESTER 2'; Color:=clRed; Font.Color:=Color; Checked:=TRUE; END ELSE IF Color=clRed THEN BEGIN Caption:='TESTER 3'; Color:=clBtnFace; Font.Color:=Color; Checked:=FALSE; END …

Member Avatar
Member Avatar
+0 forum 4

Hi all, I'm almost done with a problem for a java class I'm taking. The chapter I'm studying is on inheritance and I think I understand it ok. The parent class will compile fine, but when the child class tries to compile I get an error saying it cannot find the constructor in the parent class. I am supposed to write an application that creates an object of each class, and demonstrate that all the methods work correctly. Take a look, any input would be VERY appreciated! Parent Class: [CODE] public class HotelRoom { double rentRate; int roomNum; public HotelRoom(int …

Member Avatar
Member Avatar
+0 forum 1

Hey I'm having a bit of a weird problem. I have an image contains in a div (#rel-content) and that div inside of another (#releases). Here is my HTML code: [CODE] <div class="releases"> <div id="rel-topbar"><img src="images/blackrightbar.jpg" width="312" height="39" alt="Release Navigation Bar"> </div> <!-- rel-topbar --> <div id="rel-content"><a href="http://itunes.apple.com/gb/album/erased/id377011296?uo=4" target="itunes_store" ><img src="images/album-cover.jpg" width="300" height="300" alt="Hope of the Hated - Erased Album Cover" style="border-style: none" /></a> <h2><span>Buy The Album:<br/ >Available now on iTunes!</span></h2> </div> <!-- rel-content --> </div><!-- releases --> [/CODE] As you can see inside #rel-content I have an image and a header inside. What I want is the header (h2) …

Member Avatar
Member Avatar
+0 forum 5

Heey Guy's, I'm having trouble understanding the Threading within an application. I will try to explain the program: 2 forms 1 parent (Server) 1 child (Client) both screens run on local computer (no network is needed) The server generates a random number once I've pressed a button. The number must be given to the Client Witch will show the received value from the server within a label object. So far I have tried the following: [B]Situation 1: (Not the first choice)[/B] 3 forms 1 parent (Server) 1 child (Client) 1 control (Control) 1 Extra screen from where I start the …

Member Avatar
Member Avatar
+0 forum 1

Hello, I would like to know if you can change the index of a tree view node before and or after its created. If so how. Basically manually assigning each node its offsets through code. Thanks, TheShyGuy

Member Avatar
+0 forum 0

Hi experts, I have a requirement to change the background color of I Frame tag with respect to parent 's bg color. can you provide me the snippet for this. when iframe is opening if open's with white background color. i changed IFrame color with allow transparency ="true" its working But i need to change its back ground color with respect to parent color which IFrame tag is in. so when we change color in main page the Iframe background color also has to change.

Member Avatar
Member Avatar
+0 forum 1

On average, I Have been doing quite well on my "TAXA" Wood Wood Knowledge Base website in getting many of the features coded and working --- more than this slow and amateur PHP coder that he could. I even got a search engine working yesterday, something I was not sure that I could do. Arranging travel up the botanical tree is one of the major tasks yet to be conquered in the whole plan for the site. To help anyone to visualize what this is all like, I will include the URL for the site: [url]http://www.prowebcanada/taxa[/url] There are 4 entry …

Member Avatar
Member Avatar
+0 forum 7

Hi all, I'm working on a VB6 project and i'm a bit rusty as its been a while!! I want to create one form that can be reused in several sections. What I need is that my new form will know where it was called from. I can then grab some variables from the parent form, to populate my new form. Does a form that's just been loaded know where the call to load came from? Thanks RedByte

Member Avatar
Member Avatar
+0 forum 1

So far progress overall has been going well in general on my pet project I call the TAXA project (nickname for taxonomy). The heart of it is a botanical tree on all the woods of the world. Since viewing it can make it easier for any of you to understand and help, feel welcome to preview it at prowebcanada.com/taxa :-). So far you can enter into this data tree at any of four levels (Order, Family, Genus or Species). To this point of development, a person can travel down the knowledge tree but not up. The tree represents multiple one …

Member Avatar
+0 forum 0

I want to focus back on the main page from an iFrame that is loaded as an element on the page. I am trying to make a toggle focus using CTRL to go between the two. I am using javascript to navigate the iFrame to different pages. Once the iFrame has focus, I can't get it to focus on the parent document. Any ideas?

Member Avatar
Member Avatar
+0 forum 1

Hi Friends, I have a user control. what I wanted to do is to find the panel from its parent page. My code is below [ICODE]Dim pnl As Panel = Me.Parent.FindControl("Panel1")[/ICODE] But it returns Nothing. Help me asap.

Member Avatar
Member Avatar
+0 forum 1

The End.