Main Page | Modules | Directories | File List | File Members

functions


Variables

Zapatec Utils __wch_id = 0
Zapatec Utils createWCH
Zapatec Utils setupWCH_el
Zapatec Utils setupWCH
Zapatec Utils hideWCH

Variable Documentation

Zapatec Utils __wch_id = 0
 

[number, static] used to create ID-s for the WCH objects

Definition at line 378 of file utils.js.

Zapatec Utils createWCH
  Create an WCH object. This function does nothing if the browser is not IE5.5 or IE6.0. A WCH object is one of the most bizarre tricks to avoid a notorious IE bug: IE normally shows "windowed controls" on top of any HTML elements, regardless of any z-index that might be specified in CSS. This technique is described at: http://www.aplus.co.yu/WCH/

A "WCH object" is actually an HTMLIFrame element having a certain "CSS filter" (proprietary MSIE extension) that forces opacity zero. This object, displayed on top of a windowed control such as a select box, will completely hide the select box, allowing us to place other HTMLElement objects above.

WCH stands for "Windowed Controls Hider".

Parameters:
element [HTMLElement, optional] -- Create the WCH IFRAME inside this.
Returns:
[HTMLIFrame or null] a new WCH object if the browser is "supported", null otherwise.

Definition at line 399 of file utils.js.

Zapatec Utils setupWCH_el
  Configure a given WCH object to be displayed on top of the given element. Optionally, a second element can be passed, and in this case it will setup the WCH object to cover both elements.

Parameters:
f [HTMLIFrame] the WCH object
el [HTMLElement] the element to cover.
el2 [HTMLElement, optional] another element to cover.

Definition at line 424 of file utils.js.

Zapatec Utils setupWCH
  Configure a WCH object to cover a certain part of the screen.

Parameters:
f [HTMLIFrame] the WCH object.
x [number] the X coordinate.
y [number] the Y coordinate.
w [number] the width of the area.
h [number] the height of the area.

Definition at line 459 of file utils.js.

Zapatec Utils hideWCH
  Hide a WCH object.

Parameters:
f [HTMLIFrame] object to hide.

Definition at line 475 of file utils.js.