Hello
I’m loading FORM-LABELS and ONCLICK i would like to load the url in the second LAYOUT (Layout[1].cells(‘b’)).
How can i realize that?
Code
function doOnLoad() {
Layout = new Array();
Form = new Array();
// -----------------------------------LAYOUT--------------------------------------
Layout[1] = new dhtmlXLayoutObject(document.body, '2U');
Layout[1].setEffect('collapse', true);
Layout[1].setEffect('resize', true);
Layout[1].setEffect('highlight', true);
Layout[1].cells('a').setWidth('230');
Layout[1].cells('a').fixSize(true, true);
Layout[1].cells('b').fixSize(true, true);
Layout[1].cells('a').hideHeader();
Layout[1].cells('b').hideHeader();
// -----------------------------------TOOLBAR-------------------------------------
Toolbar = Layout[1].cells('a').attachToolbar();
Toolbar.setIconsPath("../images/icons/");
Toolbar.setSkin('dhx_skyblue');
Toolbar.addButton("close2", 0, "Schliessen", "Exit.png", "Exit.png");
Toolbar.attachEvent("onClick", function(id) { Button_laden(id,0,1,'<?php echo $window; ?>'); });
// ---------------------------------KATEGORIEN------------------------------------
formdata = [
{type: "fieldset", label: "Thema", width: 210, offsetLeft: 7, offsetTop: 3, list: [
<?php if ($job == 4) { ?>
{type: "label", name: "field1_1", label: "<a href='../php/link_1.php'><img src='../images/icons/choose2.png' width='18' height='18' alt='' style='position:relative;left:-9px;top:3px' />Artikel tauschen</a>", offsetTop: 5, className: "thema"},
{type: "label", name: "field1_2", label: "<a href='../php/link_2.php'><img src='../images/icons/choose2.png' width='18' height='18' alt='' style='position:relative;left:-9px;top:3px' />Bedarfsanfrage</a>", className: "thema"}
<?php } ?>
]}
];
Form[1] = Layout[1].cells('a').attachForm(formdata);
}