JIM Control Usage Manual : Advanced Users -> Daisy-Chain Functions
[ To Table Of Contents ]

With a more advanced site, you may wish to control what the default, maximize and close options for inline windows instead of using the default functions that have been provided. Additionally, you may also need to access mouse-event trapping statuses (such as mouse movement, and mouse clicks). This section has been created to show you how you can use these features in your own code.

Custom control of default, maximize and close options
Attach your own code inside the functions listed below to integrate your own methods. Be sure to have the correct flag value(s) set as indicated (which are at the top of the javascript).
Function Flag Value To Set To 1 To Use Function Purpose of Function
wovride_defsize(id_window) allowdef_ovride Use this function when the default inline window default size function is not suitable.
id_window = The ID value of the div layer where the mouse-click event occured.
wovride_maxsize(id_window) allowmax_ovride Use this function when the default inline window maximize size function is not suitable.
id_window = The ID value of the div layer where the mouse-click event occured.
wovride_clswind(id_window) allowcls_ovride Use this function when the default inline window maximize size function is not suitable.
id_window = The ID value of the div layer where the mouse-click event occured.


Detecting Mouse Activity
Typically, only one set of mouse-trapping functions are supported by web browsers. Since the JIM-Control™ must use its own mouse-trapping due to complexity, a set of empty functions have been created to allow you to use mouse-trapping if you need to, or your site already uses such functionality. To use them (located at the top of the javascript), simply add your code inside of them.
Function Purpose of Function
wmouseup_custom() Use this function when you need to know when a mouse up event occurs
wmousedown_custom() Use this function when you need to know when a mouse down event occurs
wmousemove_custom(msx, msy) Use this function when you need to know the mouse coordinates when the mouse moves
msx = mouse X position on the web page
msy = mouse Y position on the web page


Synchronizing Window Array Statuses With Div Statuses
If you are bypassing the default functions that control the visibility status of the inline windows by changing the status of the div as well as the value in the window array, you may wish to use the function below that allow you to easily set the visibility of both the div and the recorded visibility status in the windows array.

wcontrolarr_set(windowid, status, staticset)

What The Fields Mean:
windowid ID of the DIV that you wish to change the visiblity of in the array holding the div information.
status visibility status of the div containing the inline window (visible or hidden)
staticset 1 (yes) OR 0 (no). If set to 1, the function will also set the visibility of the div embedded in the web page.