







A link that pop ups a Dialog (overlay div)
Namespace:
HttpServer.Helpers.Implementations
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public override string DialogLink( string url, string title, params string[] htmlAttributes ) |
Visual Basic (Declaration) |
---|
Public Overrides Function DialogLink ( _ url As String, _ title As String, _ ParamArray htmlAttributes As String() _ ) As String |
Visual C++ |
---|
public: virtual String^ DialogLink( String^ url, String^ title, ... array<String^>^ htmlAttributes ) override |
Parameters
- url
- Type: System..::.String
url to contents of dialog
- title
- Type: System..::.String
link title
- htmlAttributes
- Type: array<
System..::.String
>[]()[]
name, value, name, value
Return Value
A "a"-tag that popups a dialog when clicked
Remarks
Requires Control.Modal found here: http://livepipe.net/projects/control_modal/
And the following javascript (load it in application.js):
Event.observe(window, 'load', function() { document.getElementsByClassName('modal').each(function(link){ new Control.Modal(link); }); } );
Examples
WebHelper.DialogLink("/user/show/1", "show user", "onmouseover", "alert('booh!');");