Click or drag to resize

JSHelperOpenLightbox Method

Generate javascript to open a lightbox window (currently using jQuery Colorbox by Jack Moore) to present the specified URL.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string OpenLightbox(
	IAppContext cxt,
	string url,
	bool modal,
	string closeHtml
)

Parameters

cxt
Type: NetQuarryIAppContext
The application context.
url
Type: SystemString
The URL to host.
modal
Type: SystemBoolean
Specifies whether or not the lightbox should be presented modally.
closeHtml
Type: SystemString
Optional HTML to be presented as the lightbox Close button. If omitted, a default will be provided.

Return Value

Type: String
The javascript for opening up a lightbox.
See Also