common_menu.js File Reference


Functions

 if (browser.agentIE) document.onmousedown
else if (document.addEventListener) document.addEventListener("mousedown"
function closeMenu ()
function pageMousedown (event)
function openMenu (menu_button, menuName)
function changeMenu (menu_button, menuName)
function closeSubmenu ()
function closeSubmenuOf (name)
function openSubmenu (item, subName)
function clickMenu (menu_button)
function getPageOffsetLeft (obj)
function getPageOffsetTop (obj)
function showContextMenu (id)
function closeContextMenu ()
function getMouseX ()
function getMouseY ()
function replace (string, search, replace)
function encodeArgument (arg)
function contextURI (uri, names, translated)
function openContext (uri, names, translated, window, params)
function getform (form)
function setformvar (form, name, value)
function setformvarsubmit (form, name, value)
function formsubmit (form)
function toggle_flag (form, flag)
 Toggle a (form) flag.
function submit_preventdouble (button, element, value)
 Disable a button to prevent double-clicking, stores the optional value in an input field and submits the form.
function show_hourglass (time)
 Show an hourglass after a specified time.
function _start_show_hourglass (fade)
function fade_in (element)
 Fade an element in softly.
function center_element (element)
 Center an element.

Variables

var menuActive = null
var subMenu = null
var subMenuName = ''
var contextMenu = null
var x = 0
var y = 0
else pageMousedown
else true
var _fade_in_element = null
var _fade_in_opacity = 0

Function Documentation

function _start_show_hourglass fade   ) 
 

function center_element element   ) 
 

Center an element.

The element is supposed to be position: absolute.

Parameters:
element Pointer to an element to fade in

function changeMenu menu_button  ,
menuName 
 

function clickMenu menu_button   ) 
 

function closeContextMenu  ) 
 

function closeMenu  ) 
 

function closeSubmenu  ) 
 

function closeSubmenuOf name   ) 
 

function contextURI uri  ,
names  ,
translated 
 

function encodeArgument arg   ) 
 

function fade_in element   ) 
 

Fade an element in softly.

This works using opacity. Browsers not supporting oppacity will not actually show an effect - the object just appears. For this to work in Internet Explorer the element must have a given height or width. The element is supposed to be hidden before fading in with "visibility:hidden".

Parameters:
element Pointer to an element to fade in.

function formsubmit form   ) 
 

function getform form   ) 
 

function getMouseX  ) 
 

function getMouseY  ) 
 

function getPageOffsetLeft obj   ) 
 

function getPageOffsetTop obj   ) 
 

else if document.  addEventListener  ) 
 

if browser.  agentIE  ) 
 

function openContext uri  ,
names  ,
translated  ,
window  ,
params 
 

function openMenu menu_button  ,
menuName 
 

function openSubmenu item  ,
subName 
 

function pageMousedown event   ) 
 

function replace string  ,
search  ,
replace 
 

function setformvar form  ,
name  ,
value 
 

function setformvarsubmit form  ,
name  ,
value 
 

function show_hourglass time   ) 
 

Show an hourglass after a specified time.

This requires the hourglass HTML source (.inc@) to be included on the respective page. If a time argument is given, the hourglass is faded in after waiting time milliseconds. If no time is given, the hourglass is immediately shown without any fading effect.

Parameters:
time (optional) Time in milliseconds to wait before displaying the hour glass.

function showContextMenu id   ) 
 

function submit_preventdouble button  ,
element  ,
value 
 

Disable a button to prevent double-clicking, stores the optional value in an input field and submits the form.

When the button is disabled, its value will not be sent to the server, therefore this function allows to pass a value to a separate input field. If no value and/or element are given, only the form is submitted.

Parameters:
button A pointer to a button
element (optional) The name of a field that should be set before submitting the form
value (optional) The value that should be stored in the target element
Returns:
false

function toggle_flag form  ,
flag 
 

Toggle a (form) flag.

Finds a flag in a form, sets its value to "0" if it was true before, to "1" if it was false before.

Parameters:
form (optional) form as in getform().
flag The name of the flag or the flag form field itself.


Variable Documentation

var _fade_in_element = null
 

var _fade_in_opacity = 0
 

var contextMenu = null
 

var menuActive = null
 

else pageMousedown
 

var subMenu = null
 

var subMenuName = ''
 

else true
 

var x = 0
 

var y = 0
 


Generated on Sat May 19 01:18:28 2012 for Big Sister Web Application Framework by  doxygen 1.4.5