Attach Component to parent Layout cell

Hi,

I use layout as main page for my application. The other page are attached with attachurl method. I try to attach layout from child page to parent main layout but i have many problems
How i can resolve it ??
below sample code .

//Main page
var ApplicationLayout ;

function doOnLoad() { 
                    
    ApplicationLayout = new dhtmlXLayoutObject(document.body,"2U");           
    ApplicationLayout.cells("a").setWidth(180);    
    ApplicationLayout.cells("a").setText("Menù"); 
    ApplicationLayout.attachHeader("mainHeader");  // zona alta sopra layout //
    ApplicationLayout.attachFooter("mainFooter"); // zona bassa sotto il layout //
    ApplicationLayout.cells("b").attachURL("anagrafe.php");
   
}
....

// anagrafe.php
var layout_anagrafe = new dhtmlXLayoutObject(parent.ApplicationLayout.cells(“b”), ‘1C’);

Many thanks
Antonello

Hi

var layout_anagrafe = new parent.dhtmlXLayoutObject(parent.ApplicationLayout.cells(“b”), ‘1C’);