Type |
Read/Write |
Boolean |
Yes/Yes |
The Embedded property stores whether the form should be displayed embedded in the HTML5 client.
The output of the elements of the form is then done:
- in the output DIV of the website if no EmbeddedID is specified.
- in a DIV specified via the EmbeddedID feature.
Example:
The knowledge base "MYKNB" is used with the highest main and secondary version in the HTML5 client. The class with the name Start is the application start class.
Two DIVs will be used by embedded windows: ID1 und ID2.
<!DOCTYPE
html>
<meta charset="utf-8" />
<html>
<head>
<title>TCE HTML5 sample</title>
<link rel="stylesheet" href="CSS/tce.css">
<script
type="text/javascript" src="tce/TCE.js"></script>
</head>
<body>
<h2
id="pagetitle" style="font-style:italic;"></h2>
<div id="TCEOut"
style="width:1px;height:1px;overflow:hidden""></div>
<h2>Configuration
1</h2>
<div id="ID1" style="width:500px;height:300px;overflow:hidden"></div>
<h2>Configuration 2</h2>
<div id="ID2" style="width:500px;height:300px;overflow:hidden"></div>
<script>
document.tce = new TCE(false, "output", "ws://ws.tap-con.de:80/chat", "TCP", "<pkf>", "MYKNB", "-1", "-1", "Start", "");
</script>
</body>
</html>
In the knowledge base "MYKNB", two forms are prepared.
Form1 with property Embedded = True and EmbeddedID =
ID1
Form2 with property Embedded = True and EmbeddedID = ID2
If the forms Form1 and Form2 are now displayed in the client, they are output in the DIV specified via EmbeddedID.