child

jQuery child of clicked element

Hi, I've got a list of links which have a click event attached to them, I need to get the ID from the child A link. So in the example below if I clicked the first list element I'd need google retuned. I've tried '$this a' but can't quite work out the syntax. jQuery: $("ul li").click(function(event){ $("input").val($(this).html()); ...

What is the best way to do a simple Parent-Child drop down in pure Javascript

I need to do a quick and dirty 'Country' --> 'State' drop down relationship on a web form. I only am concerned with the states, provinces, and territories for USA and Canada, and this will be a relatively lightly used form, so a pure javascript solution is probably ideal. ...

GTK: Resizing widgets contained in a textview

I have a Gtk.TextView control, and I'm inserting child widgets into it. I'd like to be able to have the children resize to fit the width of the TextView when the form is resized. Is there a built-in way to do this? If not, can anyone suggest a good way of writing my own? ...

Position child div relative to grandparent div

I got a CSS Problem, and I don't know if it's actually possible to achieve what I want. Here's a sketch to illustrate what I want to achieve: http://dl.getdropbox.com/u/103519/pkstudio/IMG.jpg And here's the demo page: http://dl.getdropbox.com/u/103519/pkstudio/menu_test.htm Actually the child div should be positioned relatively to the...

LINQ: get access to child lists during runtime

i make a group by and get child lists... during query i create a new obj with var result3 = from tick in listTicks group tick by bla bla into g select new { Count = g.Count(), Key = g.Key, Items = g, Timestamp = g.First...

how to get the child node in div using javascript

Below is the structure of my div: <div id="ctl00_ContentPlaceHolder1_Jobs_dlItems_ctl01_a" onmouseup="checkMultipleSelection(this,event);"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td style="width:50px; text-align:left;">09:15 AM</td> <td style="width:50px; t...

In ASP.Net MVC 1.0 How do I insert model child data?

I am just playing around with MVC for the first time and am having a problem. Let's say I have 2 tables - Person and Location. Location has a foreign key relationship to Person - so 1 person can have multiple locations belonging to them. In my view I have form inputs for the Person fields - this works fine. However, I also want to h...

winform mdi catch child form focus c#

I would like to be able to catch a child window focus event, in an mdi form. If i loose focus to the entire mdi application, then click on a child, it works, but if I had two child forms open, I cannot catch the focus event when clicking between them. I am using Dotnet Framework 2.0, and I need the code solution that will run fine on a...

How to create a transparent window with non-transparent child controls (or child windows)?

Hi All, First, I'm working on Win32 with C++. I have been trying to implement a transparent window with a child window which should remain 100% opaque. It seems that child controls cannot have opacity better (ah.. lower) than the parent and if I make my parent 100% transparent then my child control also inherits the transparency. C...

how do I make an element a child of itself in XML Schema?

I'd like the ability to have an arbitrary level of nesting children of the same parent element, e.g.: <path expr="/"> <path expr="usr"> <path expr="bin"> <path expr="X11" /> </path> </path> <path expr="var" /> </path> I'm writing the XML Schema file, and I'm at a loss as to how to represent this parent/child relati...

Wordpress php: Way to test if pages are children of a parent page?

Hi - Working on my first Wordpress site so I'm sure this is a really basic question. I'm struggling to write a conditional php statement that performs a certain action when a page is a child of a parent page. For example, rather than just specifying one page, as below, I'd like to specify all pages that have the 'About Us' page as a pa...

How to use LINQ to retrieve child collection

Starting here: public class Customer { public int CustomerID { get; set; } public string CustomerName { get; set; } public IList<Order> Orders { get; set; } } public class Order { public int OrderID { get; set; } public int CustomerID { get; set; } } What would be the linq query that you write to retrieve all Orders from ...

Merge parent-child property using linq

Hi, Is there a LINQ way to accomplish this? Any help is greatly appreciated. class Program { static void Main(string[] args) { Parent parent1 = new Parent(); parent1.Name = "P1"; Parent parent2 = new Parent(); parent2.Name = "P2"; Child child1 = new Child(); child1.Name = "C1"...

Parser error when trying to wrap child controls

I have developed a server control inherited from WebControl that wraps any number of child controls and changes their output. The control class is very simple and only contains the RenderContents method. Here is an example of how it has been placed on the page. (Not included: registration of control namespaces.) The intention here is th...

C# child class returning a unknown type (futher: from parent)

i have interface: public interface Inx<T> { T Set(Data data); } simple class with this metod public class Base { ??? Set(Data data) { ... } } and parent class like that: public class Parent : Base, Inx<Parent> { ... } i want to return Parent type from Set metod in child class It's possible ? I need it do to something li...

C# enum in interface/base class ?

Hi, i have problem with enum I need make a enum in base class or interface (but empty one) class Base { public enum Test; // ??? } and after make diffrent enums in some parent classes class Parent1 { public enum Test {A, B, C}; } class Parent2 { public enum Test {J, H, K}; } and now i have next class with method when...

Jquery - .next() with children of many parents

I'm writing a script to highlight table cells across multiple tables, in a calendar. The days to be highlighted have the class "available". This is the jQuery code currently: $(document).ready(function(){ $("td.available").mouseenter(function() { $(this).addClass("highlight"); $(this).next().addClass("highlight"); }); $("td.available"...

how to make child divs always fit inside parent div?

My question is if there is a way, without using javascript, to cause child divs to extend to the borders of their parent, without exceeding those borders, when you cannot know beforehand the size of the parent div? Below is sample markup/styles demonstrating my issue. If you load it into browser you will see that #two and #three both ex...

Enumerate browser tabs from external application

Hi everyone. A bit of an odd (challenging?) question. Is it possible to programmatically access the tabs of an open browser from a external application? I realize that's a vague question, but hear me out: What I'm trying to create is a "Gmail Chat Notifier" application that flashes a notification icon in the Windows system tray when an ...

Using parent variables in extending class

Hi, I have three classes MainClass, Member, and Project. Member and Project extend the MainClass. First I create a MainClass object, then a Member object and execute the function setMember: $mainclass = new MainClass(); $member = new Member($id); $mainclass->setMember($member); When the $member variable is set to the current member ...