The embed Element"
From Documentation
m (correct highlight (via JWB)) |
|||
Line 6: | Line 6: | ||
[Optional][Multiple] | [Optional][Multiple] | ||
− | It specifies the content that shall be added to the output generated and sent to the client when rendering a desktop. The syntax of the content will depend on the client. For Ajax clients, it can be any tags that can be placed inside HTML < | + | It specifies the content that shall be added to the output generated and sent to the client when rendering a desktop. The syntax of the content will depend on the client. For Ajax clients, it can be any tags that can be placed inside HTML <code><head></code>, such as <code><script></code>, <code><meta></code> and others. |
− | For example, if you want to show the progress bar in the center of the browser window, you can specify the following in < | + | For example, if you want to show the progress bar in the center of the browser window, you can specify the following in <code>zk.xml</code>. |
<source lang="xml" > | <source lang="xml" > | ||
Line 23: | Line 23: | ||
</source> | </source> | ||
− | You can specify multiple < | + | You can specify multiple <code>embed</code> elements and their content be concatenated together. |
'''Link to a JavaScript File''' | '''Link to a JavaScript File''' | ||
Notice that you need to specify your '''application context path''' in the source path. | Notice that you need to specify your '''application context path''' in the source path. | ||
− | <source lang='xml' | + | <source lang='xml' highlight='4'> |
<device-config> | <device-config> | ||
<device-type>ajax</device-type> | <device-type>ajax</device-type> |
Revision as of 10:19, 19 January 2022
Syntax:
<embed>any_valid_fragment</embed>
[Optional][Multiple]
It specifies the content that shall be added to the output generated and sent to the client when rendering a desktop. The syntax of the content will depend on the client. For Ajax clients, it can be any tags that can be placed inside HTML <head>
, such as <script>
, <meta>
and others.
For example, if you want to show the progress bar in the center of the browser window, you can specify the following in zk.xml
.
<device-config>
<device-type>ajax</device-type>
<embed><![CDATA[
<script type="text/javascript">
AU_progressbar = function (id, msg) {
Boot_progressbox(id, msg, 0, 0, true, true);
};
</script>
]]></embed>
</device-config>
You can specify multiple embed
elements and their content be concatenated together.
Link to a JavaScript File
Notice that you need to specify your application context path in the source path.
<device-config>
<device-type>ajax</device-type>
<embed><![CDATA[
<script type="text/javascript" src="/myapp/zkpatch/lisbox_selectbugfixed.js"></script>
]]></embed>
</device-config>
Version History
Version | Date | Content |
---|---|---|