C# Class NSoft.NFramework.Web.ClientScriptUtils

Client Script (javascript, vbscript)를 생성하기 위한 Utility Class
显示文件 Open project: debop/NFramework

Public Methods

Method Description
CloseOpener ( ) : string

Closes the opener.

CloseParent ( ) : string

Closes the parent.

CloseSelf ( ) : string

Closes the self.

Open ( string url, string frameName ) : string

Opens the specified URL.

Open ( string url, string frameName, bool status, bool location, bool menubar, bool resizable, int height, int width, int top, int left, bool scrollbars = true, bool toolbar = true ) : string

Opens the specified URL.

OpenerGoBack ( ) : string

Openers the go back.

ParentGoBack ( ) : string

Parents the go back.

PopAlert ( this msg ) : string

Pops the alert.

PopConfirm ( this msg ) : string

Pops the confirm.

PopPrompt ( this msg, string defaultValue ) : string

Pops the prompt.

RefreshOpener ( ) : string

Refreshes the opener.

RefreshParent ( ) : string

Refreshes the parent.

RefreshSelf ( ) : string

Refreshes the self.

SelfGoBack ( ) : string

Selfs the go back.

ShowModalDialog ( string url, bool status, bool resizable, int height, int width, bool center, bool scroll = false ) : string

Shows the modal dialog.

ShowModalDialog ( string url, bool status, bool resizable, int height, int width, int top, int left, bool scroll = false ) : string

Shows the modal dialog.

ShowModelessDialog ( string url, bool status, bool resizable, int height, int width, bool center, bool scroll = true ) : string

Shows the modeless dialog.

ShowModelessDialog ( string url, bool status, bool resizable, int height, int width, int top, int left, bool scroll = true ) : string

Shows the modeless dialog.

ToJsDoubleQuoteSafeString ( this str ) : string

Toes the js double quote safe string.

ToJsSingleQuoteSafeString ( this str ) : string

Toes the js single quote safe string.

ToJsStringArray ( ) : string

Toes the js string array.

ToVbsQuoteSafeString ( this str ) : string

Toes the VBS quote safe string.

WrapScriptTag ( ) : string

Wraps the script tag.

Private Methods

Method Description
CallClientValidator ( this prefix ) : string

Calls the client validator.

Method Details

CloseOpener() public static method

Closes the opener.
public static CloseOpener ( ) : string
return string

CloseParent() public static method

Closes the parent.
public static CloseParent ( ) : string
return string

CloseSelf() public static method

Closes the self.
public static CloseSelf ( ) : string
return string

Open() public static method

Opens the specified URL.
public static Open ( string url, string frameName ) : string
url string The URL.
frameName string Name of the frame.
return string

Open() public static method

Opens the specified URL.
public static Open ( string url, string frameName, bool status, bool location, bool menubar, bool resizable, int height, int width, int top, int left, bool scrollbars = true, bool toolbar = true ) : string
url string The URL.
frameName string Name of the frame.
status bool if set to true [status].
location bool if set to true [location].
menubar bool if set to true [menubar].
resizable bool if set to true [resizable].
height int The height.
width int The width.
top int The top.
left int The left.
scrollbars bool if set to true [scrollbars].
toolbar bool if set to true [toolbar].
return string

OpenerGoBack() public static method

Openers the go back.
public static OpenerGoBack ( ) : string
return string

ParentGoBack() public static method

Parents the go back.
public static ParentGoBack ( ) : string
return string

PopAlert() public static method

Pops the alert.
public static PopAlert ( this msg ) : string
msg this The MSG.
return string

PopConfirm() public static method

Pops the confirm.
public static PopConfirm ( this msg ) : string
msg this The MSG.
return string

PopPrompt() public static method

Pops the prompt.
public static PopPrompt ( this msg, string defaultValue ) : string
msg this The MSG.
defaultValue string The default value.
return string

RefreshOpener() public static method

Refreshes the opener.
public static RefreshOpener ( ) : string
return string

RefreshParent() public static method

Refreshes the parent.
public static RefreshParent ( ) : string
return string

RefreshSelf() public static method

Refreshes the self.
public static RefreshSelf ( ) : string
return string

SelfGoBack() public static method

Selfs the go back.
public static SelfGoBack ( ) : string
return string

ShowModalDialog() public static method

Shows the modal dialog.
public static ShowModalDialog ( string url, bool status, bool resizable, int height, int width, bool center, bool scroll = false ) : string
url string The URL.
status bool if set to true [status].
resizable bool if set to true [resizable].
height int The height.
width int The width.
center bool if set to true [center].
scroll bool if set to true [scroll].
return string

ShowModalDialog() public static method

Shows the modal dialog.
public static ShowModalDialog ( string url, bool status, bool resizable, int height, int width, int top, int left, bool scroll = false ) : string
url string The URL.
status bool if set to true [status].
resizable bool if set to true [resizable].
height int The height.
width int The width.
top int The top.
left int The left.
scroll bool if set to true [scroll].
return string

ShowModelessDialog() public static method

Shows the modeless dialog.
public static ShowModelessDialog ( string url, bool status, bool resizable, int height, int width, bool center, bool scroll = true ) : string
url string The URL.
status bool if set to true [status].
resizable bool if set to true [resizable].
height int The height.
width int The width.
center bool if set to true [center].
scroll bool if set to true [scroll].
return string

ShowModelessDialog() public static method

Shows the modeless dialog.
public static ShowModelessDialog ( string url, bool status, bool resizable, int height, int width, int top, int left, bool scroll = true ) : string
url string The URL.
status bool if set to true [status].
resizable bool if set to true [resizable].
height int The height.
width int The width.
top int The top.
left int The left.
scroll bool if set to true [scroll].
return string

ToJsDoubleQuoteSafeString() public static method

Toes the js double quote safe string.
public static ToJsDoubleQuoteSafeString ( this str ) : string
str this The STR.
return string

ToJsSingleQuoteSafeString() public static method

Toes the js single quote safe string.
public static ToJsSingleQuoteSafeString ( this str ) : string
str this The STR.
return string

ToJsStringArray() public static method

Toes the js string array.
public static ToJsStringArray ( ) : string
return string

ToVbsQuoteSafeString() public static method

Toes the VBS quote safe string.
public static ToVbsQuoteSafeString ( this str ) : string
str this The STR.
return string

WrapScriptTag() public static method

Wraps the script tag.
public static WrapScriptTag ( ) : string
return string