Refresh Layout

Hello

How can i refresh LAYOUT from an opened WINDOW? I’ve got the following construct:

// Layout
Layout[4] = Layout[2].cells('b').attachLayout('2E');
Layout[4].cells('a').setHeight('151');		
Layout[4].cells('a').hideHeader();
Layout[4].cells('b').hideHeader();				
Layout[4].cells('a').attachURL('../../php/memo.php');

// A Toolbar as Header with an icon which opens a WINDOW
ToolBar[3] = Layout[4].cells('a').attachToolbar();
ToolBar[3].setSkin('dhx_grey');	
ToolBar[3].setIconsPath("../../images/icons/");
ToolBar[3].addText("head", 1, "<span style='font-weight:bold;color:#FC0;font-size:15px;position:relative;top:-4px;left:144px'>Memo<a href='#' class='regular' onclick='Window_erstellen(11,3,false,\"Memo eintragen\",0,0,450,350,12345,<?php echo $user; ?>,0,0,false,true,false,true);'><img src='../../images/icons/Create2.png' alt='Memo' align='absmiddle' class='hinweisicon' title='Neuer Memo Eintrag' /></a>");

// WINDOW
Window[11] = dhxW.createWindow(11, 0, 0, 350, 450);
Window[11].attachURL('../../php/memo_alert.php?a=1&b=12345&f=11');

// Script inside the WINDOW (on Button Click)
// i want to refresh Layout[4].cells("a") before the parent Window[11] get closed
window.top.Layout[4].cells("a").attachURL("../../php/memo.php");   // doesn't work
window.parent.Window[11].close();  // works

Thank you

Hello
Could you provide us a demo on support@dhtmlx.com with a link to this topic?
docs.dhtmlx.com/auxiliary_docs__ … pport.html

Oh … found the error … WINDOW was declared inside a function :blush:

Thank you anyway :smiley:

You are welcome :slight_smile:

P.S. It is common situation: to find the issue creating a demo :slight_smile: