The embed Element"

From Documentation
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 <tt>HEAD</tt> tag, such as <tt>SCRIPT</tt>, <tt>META</tt> and others.
+
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 <tt><head></tt>, such as <tt><script></tt>, <tt><meta></tt> 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 <tt>zk.xml</tt>.
 
For example, if you want to show the progress bar in the center of the browser window, you can specify the following in <tt>zk.xml</tt>.
Line 24: Line 24:
  
 
You can specify multiple <tt>embed</tt> elements and their content be concatenated together.
 
You can specify multiple <tt>embed</tt> elements and their content be concatenated together.
 +
 +
'''External JavaScript File'''
 +
 +
<source lang='xml' high='5'>
 +
<device-config>
 +
  <device-type>ajax</device-type>
 +
  <embed><![CDATA[
 +
        <script type="text/javascript" src="/applicationContext/zkpatch/lisbox_selectbugfixed.js"></script>
 +
    ]]></embed>
 +
</device-config>
 +
</source>
 +
* Line 5: Notice that you need to specify your application context root in the source path.
 +
  
 
=Version History=
 
=Version History=

Revision as of 02:38, 26 November 2015


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.

External JavaScript File

<device-config>
   <device-type>ajax</device-type>
   <embed><![CDATA[
        <script type="text/javascript" src="/applicationContext/zkpatch/lisbox_selectbugfixed.js"></script>
    ]]></embed>
</device-config>
  • Line 5: Notice that you need to specify your application context root in the source path.


Version History

Last Update : 2015/11/26


Version Date Content
     


Last Update : 2015/11/26

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.