|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--WindowManager
This class provides utility methods related to the current browser window. A static object of this class
is avaialable with name WinMgr.
var WinMgr = new WindowManager();
| Field Summary | |
Object |
currentWinId
|
Boolean |
isAWK
true means the current browser is an AppleWebKit browser |
Boolean |
isFF3
true means the current browser is Firefox version 3 |
Boolean |
isGecko
true means the current browser is Gecko |
Boolean |
isIE
true means the current browser is Internet Explorer |
Boolean |
isIEA6
true means the current browser is Internet Explorer after version 6 |
Boolean |
isOpera
true means the current browser is Opera |
| Constructor Summary | |
WindowManager()
|
|
| Method Summary | |
void
|
close(pageName)
Saves the windows position and dimensions to the cookie and closes the current browser window. |
void
|
display(pageName,params,doc,omitRand)
Sets the location.href of the specified document to display the given MoreMotion page. |
void
|
Display(pageName,params,doc)
Sets the location.href of the specified document to display the given MoreMotion page. |
Object
|
expireCookie(name, domain, path)
Expires the specified cookie |
String
|
getCookie(name)
Returns the value of the specified cookie |
Object
|
getDims()
|
String
|
getRequestParam(parmName, defValue)
Returns the value of the specified request parameter. |
window Object
|
openWindow( props )
Opens a new Popup window with the specified parameters. |
Object
|
rand()
Returns a _rand= definition with a timestampt |
void
|
Refresh(params,doc)
Refreshes the current page with the given parameters. |
Object
|
setCookie(name, value, minutes, domain, path, secure)
Sets a cookie. |
| Field Detail |
Object currentWinId
Boolean isAWK
true means the current browser is an AppleWebKit browser
Boolean isFF3
true means the current browser is Firefox version 3
Boolean isGecko
true means the current browser is Gecko
Boolean isIE
true means the current browser is Internet Explorer
Boolean isIEA6
true means the current browser is Internet Explorer after version 6
Boolean isOpera
true means the current browser is Opera
| Constructor Detail |
WindowManager()
| Method Detail |
void close(pageName)
pageName - The name of the current page. This parameter will be used as the cookie key to save the current top, left, width, height values of the active window. If omitted then no saving is done.
void display(pageName,params,doc,omitRand)
pageName - The name of the MoreMotion page
params - Request parameters object
doc - The handle of the document object to display the page in it. The default is document.
omitRand - The flag to say that no "_rand" parameter needs to be added to the request
void Display(pageName,params,doc)
pageName - The name of the MoreMotion page
params - Request parameters object
doc - The handle of the document object to display the page in it. The default is document.
Object expireCookie(name, domain, path)
name - The cookie name
domain - The domain name
path - The path string
String getCookie(name)
name - The cookie name
Object getDims()
String getRequestParam(parmName, defValue)
parmName - The name of the request parameter
defValue - The value to return in case of the specified parameter is missing in the request
window Object openWindow( props )
props - The property array that contains the function parameters in {prop1:"Value1", prop2:"Value2"} format.
Example:
WinMgr.openWindow({
url:"/NewWindow/PopUp", height:400, width:700,
scrollbars:true, toolbar:true, menubar:true, resizable:true,
status:true, location:true, resizeable:true,
top:50, left:50 });
Object rand()
void Refresh(params,doc)
params - Request parameters object
doc - The handle of the document object to display the page in it. The default is document.
Object setCookie(name, value, minutes, domain, path, secure)
name - Cookie Name
value - Cookie Value
minutes - The life of the cookie in minutes
domain - The domain string
path - The path string
secure -
|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||