child

REALBasic Child FolderItem Should Be a Directory Also

I have a bunch of Realbasic code that was written on a Mac that I'm supposed to port to Windows. Right now let's just try to get the program running from within REAL Studio. GetFolderItem("") returns the folder the application is in. Child("A") returns another FolderItem how I would expect. But when I call Child("B") on A it returns a Fo...

How do I Scroll parent page to top when child page is click within iframe?

Hello, When someone clicks on a link within an iframe (child page), how do I get the parent page to scroll to the top? The issue is the child page will remain in the same spot of the page, because the iframe has a lot of height larger than the parent page. Please note: the parent and child pages are on different sub domains. I created...

Javascript: How to change attributes of child elements?

I have this hidden link, which is needed for other purposes: <span id="notitle" style="display: none;"> <a href="...Foo" title="Foo" style="..."></a> </span> The link is generated dynamically and automatically includes the title attribute. But I'd like to remove the title attribute since the value is copied when the user copy-pastes s...

How to remove attributes for multiple child elements?

I have system-generated links which I hide manually. Now I want to remove the link's title attributes sicne those are copied when the user copies surrounding text. <html> <head> <script type="text/javascript"> var getElementsByClassName = function (className, tag, elm){ if (document.getElementsByClassName) { getElements...

jQuery: getting current selector's inner html PLUS selector's header (outer html)

Hi all, Using jQuery, I've got a selector -- call it $('#someDiv1') -- that I'd like to get the inner HTML for, but also the header of the tag as well. So given this HTML structure.. <div id="parentDiv"> <div id="someDiv1"> <div id="innerDiv1_1"></div> <div id="innerDiv1_2"></div> </div> <div id="someDiv2"> ...

Constructing Child Objects in PHP

I have an abstract parent class Item, from which different types of items extend: ItemTypeA, ItemTypeB, and ItemTypeC. From my database result, I have an array: array( 'item_name' => 'This is the item name', 'item_type' => 'ItemTypeA' ); In PHP, what's the best way to create the item? Should I do something similar to the following? ...

Parent/Child tables not referencing in LINQ or am I just wrong?

I have a categories table "Category" [ID, Title] and a Parent/Child table "CategoryParent" [ID,CategoryID,ParentCategoryID] where a many-to-many tree is represented by the parent of a category being indicated using the ParentCategoryID field in the join table. I thought this would be a simple structure to use to retrieve root categories...

XSD: disallow empty element

I have an XML Schema that looks like this: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; <xs:element name="root"> <xs:complexType> <xs:sequence> <xs:element name="A" minOccurs="0" maxOccurs="1"/> <xs:element name="B" minOccurs="0" maxOccurs="1"/> <xs:el...

Android Parent and Child Activity onCreate question

I have a parent activity, and a child activity that extends the parent activity. When the parent starts the child activity, Which onCreate gets executed first? The child's or parent's? There is a particular variable I am setting in the Child activity's onCreate method, and right now, it looks like it takes a while to get to the Child ...

jQuery - Cycle Through Children

Basically, is there a way to 'cycle' through child elements. i.e.: some text some more text even more text I want to get the text from the first '<'li'>', perform a few operations, then move on to the next one and next one until I have gone through all of the child elements. Is this possible? ...

Add child to xml with PHP simpleXml

Hello, i have problem with simpleXml and adding new items. This is my xml: <?xml version="1.0" encoding="utf-8"?> <root> <items> <item>abc</item> <item>def</item> <item>ghi</item> </items> </root> Im using this php code: $xml = simplexml_load_file("myxml.xml"); $sxe = new SimpleXMLElement($xml->asXML());...

[jQuery] Get first child of xml node

Hi, I have this xml file. I would extract the first child of Status node and alert it. How I can do it? <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:ExecuteResponse xmlns:ns1="http://www.opengis.net/ows/1.1" xmlns:ns2="http://www.w3.org/1999/xlink" xmlns:ns3="http://www.opengis.net/wps/1.0.0" statusLocation="http://r...

as3: how to use grandchildren? ex. getChildByName("name").getChildByName("name2")

is it possible to get dynamically created children of a display object instance in action script 3 ? . example trace(_view.getChildByName("name")) = returns name of display object (success) . trace(_view.getChildByName("name").getChildByName("name2") = returns error 1061 . thanks a lot and have a nice weekend ! ...

getting a single xml node - android dev

Hi guys I'm newbie to android development and I need some help... I want to make an app that will use data from an xml database and there are two points where I need help cause I find java with xml too complicate... eg. <items> <1><name>box</name><price>2.00</price></1> <2><name>pencil</name><price>1.00</price></1> </items> 1)get a ...

Shared Method in Parent Pulling Info From and Producing Child?

Here's what I'd like to achieve. After mucking around with it for a day and a half, though, I've become nearly convinced that it can't be done. If someone can show me how to achieve this, I'd be quite grateful. I have a .NET parent class Parent with a shared method Fetch(). Fetch can take a variety of parameters to help it know what par...

Hibernate all-delete-orphan on a child class with two parent classes

I'm looking into a problem, where there are two "parent" classes, P and Q that cascade all-delete-orphan to a "child" class, C. My intuition in Hibernate tells this is really a bad idea and I am getting an error message that probably confirms this when the code deletes an instance of P (i.e. session.delete(myP); ): "deleted object would...

How do you build an ASP.NET server control with multiple custom properties that are not in the same assembly?

Ok, this is a tricky one and has been bugging me now for a day and a half. Please read carefully as it is easy to misunderstand. I have seen the post http://stackoverflow.com/questions/123616/how-do-you-build-an-asp-net-custom-control-with-a-collection-property and I realise that is a solution, however, it relies on the fact that the P...

how to disable draggable div when child element scrollbar is being used

I have a jQuery draggable container div with a side scroll bar that should not be draggable when I am scrolling up and down. .infotext is the inner div that has the text, contained within #infobody which is set to overflow:auto. I need a way to negate the draggable function on the parent div when the child scrollbar is selected. Here ...

in Flex, how to add child as first child?

I am adding child as: containerComponent.addChild(newComponent); But, it adds it as last child. How can I add newComponent as first child of containerComponent? ...

Weird child selector behavior...

Well, I finally decided to totally drop IE6. It's great. First big benefit which comes with this decision is child selectors. So I started to use them for my nested drop-down menus for the first time and expected it to be a breeze. But... here's the code: <style> body { color:#000; } ul.top > li { color:red; } <ul class="...