Questions tagged [parent-node]
58 questions
0
votes
2 answers
ParentNode and insertBefore
I created a prompt box with a question. After answering, you receive the answer in a div created with JavaScript called id2. Now I am trying to place my id2 in front of id1 which is the parentNode. So it will show the answer above the first div id1.…

Sow
- 47
- 7
0
votes
1 answer
Deleting a node from an xmlNodeList
here is my code
public bool limitOutput()
{
double lowerLeftPointX = m_mapControl.CurrentExtent.LowerLeftPoint.X;
double lowerLeftPointY = m_mapControl.CurrentExtent.LowerLeftPoint.Y;
double upperRightPointX =…

Khal786
- 67
- 8
0
votes
1 answer
jQuery not finding parent
I'm trying to append something to a fieldset but ajax cannot find the parent of the button.
0
votes
1 answer
parentNode not deleting properly
my javascript knowledge is pretty poor. I'm trying to run a script with greasemonkey on http://www.twitch.tv/directory/all to remove certain kinds of streams from the list based on an image provided next to a shot of the stream(like picture of…

user3119862
- 11
- 3
0
votes
1 answer
Counting the inner nodes (parent nodes) in a binary tree recursively
I need to create a recursive method that takes as a parameter the root node of a binary search tree. This recursive method will then return the int value of the total number of inner nodes in the entire binary search tree.
This is what I have so…

wundidajah
- 177
- 2
- 6
0
votes
0 answers
xsl how do i access other element of parent node
i'm trying to populate the created date time based on some other values. if insertion date is null then now should be entered else insertion date would be displayed. see below the input
468441
…

chopstix21
- 21
- 4
0
votes
1 answer
ACL in CakePHP 2.x with type 'both'
I'm implementing the CakePHP ACL. I want my Model to both be a requester and controlled, so I've set it up like this:
public $actsAs = array(
'Acl' => array(
'type' => 'both'
)
);
The problem I'm having, is that my Model has a…

Coen Coppens
- 63
- 1
- 7
0
votes
3 answers
Javascript "this" through different scope
Please, read and try the code below. Click on "foo" paragraph. Looking at the browser console, I don't see the expected results, while if I click on "bar", I do.
Why is that happening?
user2211418
0
votes
3 answers
Recover item deleted with parentNode.removeChild
Do you know how I could recover an item deleted with JavaScript in the following way:
elem1.parentNode.removeChild(elem1);

Ivan
- 35
- 1
- 8
-1
votes
2 answers
What is the function of the the double parentNode in Javascript?
i wanna ask what does this function do and what does the "element.parentNode.parentNode" mean?
function removeToDo(element){
element.parentNode.parentNode.removeChild(element.parentNode)
}

Duong Duong
- 39
- 5
-1
votes
1 answer
Looking for info on old ie5 code node.parentnode.level
Anybody have the slightest clue on what node.parentNode.level is supposed to do or what a replacement would be, I can't seem to find a reference to .level for a parentNode in the DOM specifications. It doesn't work for IE9 or Chrome. But works in…

gitrinec
- 1
- 2
-1
votes
2 answers
how to get a value inside a child node without giving parent node in a xpath
I have a xml that looks like this
I need to get value 20 or 50 without using parent nodes req and info
can anyone help me with this?

Megha Varshini
- 3
- 2
-2
votes
1 answer
How to get parent's parent's parent's id in Angularjs
I have a problem. I need to know how to get grandparent's ID in AngularJS.
I need "{{parent}}" to become "grand-parent".
(it should be
)
var app = angular.module('myApp', []);
app.controller('myCtrl',…

Anton Temchenko
- 1,440
- 1
- 13
- 28