In an oriented tree, the parent is the previous node before the node of interest. The word parent can then be used in countless abstractions of computer science. The container of contained graphic or logic items can be called a parent. The inherited class in OOP can be called the parent.
Questions tagged [parent]
2914 questions
73
votes
7 answers
js: accessing scope of parent class
I have a jquery class within a normal class in javascript. Is it possible to access variables in the scope of the parent class from a callback function in the jquery class?
A simple example of what I mean is shown below
var simpleClass = function…

Sam
- 1,315
- 2
- 13
- 27
59
votes
4 answers
Change Parent url from iframe
Need help with a simple problem! which has the following criteria:
1) click on images link in iframe changes Parent page, click on another iframe image link changes Parent to another page (see below).
It may sound simple but I'm being googled it for…

user1476899
- 611
- 1
- 5
- 5
56
votes
4 answers
Win32 window Owner vs window Parent?
In Win32 programming, what is the difference between a window's parent and a window's owner? I thought I had it figured out, then I came across this code:
SetWindowLong(handle, GWL_HWNDPARENT, foo);
This actually sets the window's owner, not the…

Jon Tackabury
- 47,710
- 52
- 130
- 168
54
votes
9 answers
parent::parent in PHP
I search a way to access to the parent, parent function of a class without to call the parent... Hmmm, that sound a bit weird explanation so i will give an example:
class myclass
{
public function test() { return 'level 1'; }
}
class myclass2…

Alexandre
- 3,088
- 3
- 34
- 53
53
votes
5 answers
jQuery select element in parent window
Is there a way to select a DIV in the parent window using jQuery?
For example:
Main page contains this,
Popup page has a form with some options and an 'Apply' button. When the user clicks apply it affects the style…

Rob
- 1,089
- 3
- 11
- 19
52
votes
3 answers
How to get parent element by specified tag name using jquery?
I want to get an Element's parent which has an specified tag name.
Sample code:
Now i want something like this:
$('#myId').specificParent('table');…

rahim asgari
- 12,197
- 10
- 43
- 53
51
votes
4 answers
How to find nth parent of an element using jquery
I want to find the nth parent element of an given element and access the attributes of parent.
50
votes
9 answers
PHP Accessing Parent Class Variable
class A {
private $aa;
protected $bb = 'parent bb';
function __construct($arg) {
//do something..
}
private function parentmethod($arg2) {
//do something..
}
}
class B extends A {
function…

Kuntau
- 761
- 1
- 6
- 10
49
votes
7 answers
JQuery, find parent
user317005
49
votes
7 answers
jQuery - Getting the second level parent of an element
I am trying to retrieve the parent of an element's parent (grandparent?). I want to find that grandparent, then find a tag in that element, then store that text as a variable to publish elsewhere on the page. I've been trying to use the…

HandiworkNYC.com
- 10,914
- 25
- 92
- 154
49
votes
3 answers
Selecting a parent directory in html
I have a general question (I'm not all to familiar with html).
The following use of the slash I have discovered points to a sub-directory, in this case for Images:
/Image/my_Image.png
Is there an html equivalent for pointing to a parent directory?

Falcon
- 575
- 2
- 5
- 9
48
votes
5 answers
Accessing instance of the parent activity?
Suppose I have a class first.java (activity class) and I start another activity in this class (second.java - activity class).
How can I access the instance of first.java from second.java?
Can someone give me a good explanation on this... An example…

Arun Abraham
- 4,011
- 14
- 54
- 75
47
votes
3 answers