parent

android startActivityForResult is killing a thread within the parent activity

Hi, I have an activity which has a thread and a view in it...they're suspiciously similar to LunarLander. To show an in-game menu, i'm calling the startActivityForResult for a different activity which has a number of buttons on it...this is then returning the button type pressed to the parent activity. This is fine except when I carry on...

jQuery.parent() doesn't appear to be working

.parent() is not returning the parent element that I'm specifying. I don't see any problems with my code or html. Javascript: var vehicle = function () { return { init: function () { var that = this; jQuery('.vehicle-year-profile .options .delete').bind('click', function (e) { e.pre...

Maven : Parent project not resolved, transitive dependencies not used for compiling

Hello. After searching and trying a lot of things I need a Maven maven :) So, my problem is that on my development box (which is Windows 2003) I can build my maven project, but on the Bamboo server (x86_64 x86_64 x86_64 GNU/Linux) it fails because one of the modules doesn't have a library and the compiling doesn't find a class. The clas...

problem with parent() (jQuery)

problem with parent() jQuery Code http://webdev.faressoft.org/wp-content/plugins/ImageSlideShow/js/slideShow.js You can see the result here (Image Slide Show) http://webdev.faressoft.org/?p=208 $(".ImageNum span").click(function() { var image = parseInt($(this).text()); $(".correntImage", $(this).parent()).removeClass("correntImage")...

jQuery Parent change inner HTML

I got this so far: $('.event-tools a').click(function() { var status = $(this).attr('id'); var id = $(this).parent().attr('id'); $.ajax({ type: "GET", url: "http://localhost:8888/update/test.php", data: "rsvp=" + status + '&id=' + id, success: function() { $(this).parent(...

PHP: How to update a variable of a parent class from a child class

I have a function in a child class which counts the number of SQL queries in a page load In the child class which extends the parent class, after every: mysql_query($query); I put parent::update_query_function(); where update_query_function() is: function update_query_function(){ $this->query_num++; } the $query_num variable in ...

[DELPHI] Parent class inside another class

Okay, so I have this class, let's say CMain, that contains a CFruit class. What I would like to do is run functions based on CFruit's type (if it's CPear or CApple, etc). So I'd like to do something like this: type CMain = class myFruit : CFruit; function GetFruit() : CFruit; procedure SetFruit( Fruit : CFruit ); end; proced...

how to access a parent window from child window after a child popup is opened in javascript?

how to access a parent window from child window after a child popup is opened? Thanks in advance ...

how to close the child window when closing parent window in javascript?

Hi friends, how to close the child window when closing parent window in javascript? Thanks in advance. ...

using postmessage to refresh iframe's parent document

I have a greasemonkey script that opens an iframe containing a form from a different sub-domain as the parent page. I would like to refresh the parent page when the iframe refreshes after the form submission I am at the point where I can execute a function when the iframe refreshes, but I cannot get that function to affect the parent d...

trouble invoking a Jquery dialog box on a 'parent' page.

I am having a trouble invoking a Jquery dialog box on a 'parent' page. I'm calling the dialog 'open' from a dynamically loaded page within an iFrame on the 'parent' page. The showDialog button is on that dynamic IFrame form. I'm using #divId as the placeholder div, and #modalIframeId1 is where the dynamic form gets loaded via src='Add...

How to get child property inside parent class?

Hi all, Could you answer me how to do next, please? How to do this with Lambda? Is it possible to delegate some object instance and use its properties and methods in case if this method doesn't know type of delegated object? class class_a { public string getChildData<T> (T dynamicInstance) { return dynamicInstance.prop; ...

Call parent function in xcode iphone development

We have 2 files 'MainViewController' and 'View01' The first file addSubView the second one. In the first file we have a function named displayView. I want to be able to call this function from the View01 file is the following code correct part of View01 file #import "MainViewController.h" - (IBAction) changeView:id(sender){ Ma...

From a list of child elements take just one from the middle

Greetings, I have a problem and a deadline (I just know there are some knowing nods at that plight) Background: I had a need to store data elements in an hierarchical nature. In a nutshell my xml is a set of rules that instruct a graphical drawing engine to draw a number of series on a chart according to a strict parent child relations...

How to search parents ?

I have construction: Grid a = ((((usercontrol.Parent as DockPanel).Parent as ScrollViewer).Parent as Grid) Is it possible to find a tree or a parent element? example: Grid a = GetFirstParent(usercontrol,"Grid") Grid - is Type element ...

Flex: How do I check what the parent of a DisplayObject is?

Hi, How can I check what the parent of a displayObject is? What is the parent of myObject for example. ...

n-Tree traversal from root node down to all childen

Hello I have a List with some tables from a database where each row contains a parent field refering to another row. Like this title, parent A, null B, A C, A D, C E, B F, null Here the A and F are root nodes, B and C is child to A, D is child to C and E is child to B in turn. What is the best way to produce a tree s...

Combining ItemsControl with draggable items - Element.parent always null

I'm binding an ItemsControl with Canvas as ItemsPanelTemplate to an ObservableCollection. I want to make the items draggable using the DraggableExtender as posted in http://stackoverflow.com/questions/294220/dragging-an-image-in-wpf (I don't want to use transforms - I need to use the Canvas Left and Top properties) It's defined as : ...

jQuery chaining parent(), is there an easier way?

Hay, I have some markup like this <div id="some-id"> <h2><a href="#">Title</a></h2> </div> and some jQuery like this $(this).parent().parent().attr("id") $(this) is referring to the 'a' tag within the 'h2' Is there an easier way to select the parent div without using parent() twice. I tried $(this).parent("div").attr("id") ...

set object method Parent

i have: object[] obj = new object[button1, label1]; // object parent; // some Panel i need for (int i = 0; i < obj.Length; i++) obj[i].Parent = parent; How to get it? ...