Normal HTML Code in the Layout

How can I add a normal HTML Code in the Layout?

Example:

A request returns the following code:

Text


Without DHTMLX: document.getElementById(“idMain”).innerHTML = “
Text


Hello,

try something like this:
dhxLayout.cells(“a”).attachObject(“idHeader”);

But the div comes as text from a request. It’s not an object in the side. How can I change the text in an object?

You can do it by passing text into innerHTML like this:

dhxLayout.cells(“a”).window._content.childNodes[2].innerHTML = “your text”;

Thanks

How should I make a standard formular in a layout? With a grid? What prefers dhtmlx?

Sorry, I’m not sure that understood your question correctly.
If you mean adding grid and other components to layout -it can be done through methods of layout, for the grid it will be

var mygrid = dhxLayout.cells(“a”).attachGrid;
… any grid configuration code here …


I create a Layout:
var dhxLayout = new dhtmlXLayoutObject("parentId", "2U")

Now I try to add a HTML form:
One way is now: dhxLayout.cells("a").window._content.childNodes[2].innerHTML = "<form action.... "

Have you a better idea to add standard HTML to the DHTML objects?
The form code comes from a request. A request is not an object.

General idea:
Layout 2U
left side a tree.
if you click an item, it shows a html form on the right side. Not a grid or another dhtmlx object.
this form comes from a request and is not at the beginning on the site.

I found no samples on this website.

No idea? :frowning:

Why don’t you use attachURL() method? It will load html.page directly into cell.