ASP.NET Window Documentation - Client-side Functions

<%@ Register TagPrefix="owd" Namespace="OboutInc.Window" Assembly="obout_Window_NET" %>

Window Client-side Functions

Name Description
propertyOpen() When called, the Window will open.

oWindow.Open();
 
propertyClose() When called, the Window will close.

oWindow.Close();
 
propertysetUrl(txtUrl) When called, Window will load the specified url.

View example

oWindow.setUrl("http://www.obout.com");
 
propertysetMode(txtMode) New Set mode to Window: either normal mode or maximize mode

oWindow.setMode('normal');
oWindow.setMode('maximize');
 
propertyPinOff(bpinoff) New Turn on/off PinOff mode.

oWindow.PinOff(true);
 
propertysetPosition(x,y) Move Window to (x,y) position

oWindow.setPosition(100,200);
 
propertygetPosition() Return object contain position of Window

oPos = oWindow.getPosition();
  alert("top:"+oPos.top);
  alert("left:"+oPos.left);
 
propertysetSize(width,height) Change size of Window

oWindow.setSize(300,200);
 
propertygetSize() Return object contain size of Window

oSize = oWindow.getSize();
  alert("width:"+oSize.width);
  alert("height:"+oSize.height);
 
propertysetTitle(txtTitle) Set title of Window

oWindow.setTitle('my Window')
 
propertysetIconPath(txtIconPath) Set icon of Window

oWindow.setIconPath('images/ie.gif')
 
propertysetOpacity(intOpacity) Set the transparency level of Window, the value of opacity ranges from 0 to 100.

oWindow.setOpacity(50)
 
propertygetOpacity() Return current transparency level of Window

var currentOpacity = oWindow.getOpacity();
 
propertysetzIndex(intzIndex) Set zIndex level for Window

oWindow.setzIndex(1000)
 
propertygetzIndex() Return zIndex of Window

alert("zIndex" + oWindow.getzIndex());
 
propertybringToFront() Make a window be in front of other windows

oWindow.bringToFront();
 
propertyscreenCenter() New Make the window position at the center of screen.
This function does not guarantee that Window will maintain center position when browser is resized.

oWindow.screenCenter();
 
propertysetStatus(txtStatus); Set the window status text

oWindow.setStatus('window Status');
 

Function - oWindowManager

Name Description
propertynewWindow() New Create Window at client-side. Function will return object of new window created.

Full command is:

oWindowManager.newWindow(txtWinID,[txtUrl],[bClose],[bMaximize],[bStatusBar],
                                       [bResizable],[bDraggable],[bIsModal]
);

Note: Those parameters in [] are optional.If [txtUtl] is specified, Window will turn to webload mode.

Example:
   var oWin = oWindowManager.newWindow('newWin');
   var oWin = oWindowManager.newWindow('newWin','http://www.obout.com');
   var oWin = oWindowManager.newWindow('newWin',null,false);
   var oWin = oWindowManager.newWindow('newWin',null,null,true);
propertygetWindows() New Return list of all windows.

var window_list = oWindowManager.getWindows();
 
propertygetWindowById(txtId) New Find and return window with specific id

var oWin = oWindowManager.getWindowById('myWindow');
 
propertygetActiveWindow() New Return object of current active window.

var current_focus_window = oWindowManager.getActiveWindow();