Layout Problem

Hi,
I have a layout (pattern ‘1C’) with an attached form. I would attach my html content (main div and other tag as child …) but i don’t want to use a pattern ‘2E’ because i would a single scroll (‘2E’ pattern → i have two cell and a single scroll for each).
Is it possibile ?

Actually, i don’t use any layout but i have attached form to my div but so i can’t take advantage of layout as progress bar, etc…

Thanks.

Hi
The best way is using method attachURL() and attach a document with form and other divs you need to a cell as iframe.
main:

dhxLayout = new dhtmlXLayoutObject("parentId", "1C"); dhxLayout.cells("a").attachURL("form_div.html");
form_div.html:

[code]html,body { height: 100%; margin: 0px; overflow: auto }

formData = [{…}];
myForm = new dhtmlXForm(“myForm1”, formData)

...
...
[/code] But pay attention, that in 'form_div.html' overflow: [b]AUTO[/b].

Ok. But about progress ?
Main Layout (‘1C’) is in page1 and the contents (form + div) are in other page2 (ex: form_div.html). I would use a global variabile for main layout but i wouldn’t do it.
Any tricks ?

In that case you can do the next:
layout.cells(“a”).attachObject(“maindiv”)
and attach to “maindiv” 2 divs: “formdiv” and “otherdiv”
But pay attaentione that you have to work with its styles in case of resize.
If your “maildiv” have a fixed width/height - you’ll get a fine result.

Thanks. It’s work.