From Documentation

Revision as of 08:20, 17 December 2010 by Char (Talk | contribs)
Jump to: navigation, search

Name: client attribute
Namespace shortcut: client/attribute

It is the reserved namespace for specifying client-side DOM attributes. Unlike the client namespace, which assigns something to widgets, the client/attribute namespace assigns additional DOM attributes to the DOM tree directly at the client.

Notice that if the widget's DOM output (Widget.redraw(Array)) also has the same DOM attribute, both of them will be generated and it is technically not legal. Thus, you shall prevent the DOM attributes that widget might output.

For example, suppose you want to listen to the onload event, and then you can do as follows[1].

<iframe src="" width="100%" height="300px"

If the attribute contains colon or other special characters, you can use the attribute element as follows.

<div xmlns:ca="client/attribute">
  <attribute ca:name="ns:whatever">

The other use of the client-attribute namespace is to specify attributes that are available only to certain browsers, such as accessibility and Section 508.

  1. For more information, please refer to ZK Component Reference: iframe.

Version History

Last Update : 2010/12/17

Version Date Content
5.0.3 July 2010 The client-attribute namespace was introduced.

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