DotNetBrowser
1.21.5
|
Allows handling browser dialogs such as JavaScript alert, confirmation and prompt. More...
Inherited by DotNetBrowser.WinForms.WinFormsDefaultDialogHandler, and DotNetBrowser.WPF.WPFDefaultDialogHandler.
Public Member Functions | |
void | OnAlert (DialogParams parameters) |
This method is invoked when JavaScript alert dialog should be displayed. In this method you can display standard modal dialog with the message that you can get from parameters. Please note that it's not necessary to display modal dialog in this method. More... | |
CloseStatus | OnConfirmation (DialogParams parameters) |
This method is invoked when JavaScript confirmation dialog should be displayed. In this method you can display standard modal dialog with the message that you can get from parameters. Please note that it's not necessary to display modal dialog in this method. More... | |
CloseStatus | OnPrompt (PromptDialogParams parameters) |
This method is invoked when JavaScript prompt dialog should be displayed. In this method you can display standard modal dialog with the message and with text field with default prompt text that you can get from parameters. Please note that it's not necessary to display modal dialog in this method. More... | |
CloseStatus | OnFileChooser (FileChooserParams parameters) |
This method is invoked when file selection is to be done. You can use this method to display a file chooser dialog with the required type that you can find out from the FileChooserMode. More... | |
CloseStatus | OnBeforeUnload (UnloadDialogParams parameters) |
This method is invoked before web page unload. Some web page may override the window.onbeforeunload JavaScript function, so that a confirmation dialog will be shown every time when user try to reload web page or navigate to another web page. You can use this method to display an appropriate confirmation message dialog to ask user whether he or she really wants to leave or reload the web page. More... | |
CloseStatus | OnSelectCertificate (CertificatesDialogParams parameters) |
This method is invoked when web server requires authorization via SSL client certificate, to access the list of the certificates from the system storage that match the server criteria. More... | |
CloseStatus | OnReloadPostData (ReloadPostDataParams parameters) |
This method is invoked when attempt to reload a web page that has POST data and the user must confirm whether POST data must be sent again or reload must be canceled. More... | |
CloseStatus | OnColorChooser (ColorChooserParams parameters) |
This method is invoked when color selection is to be done, when user selects HTML5 input element with color type. You can use this method to display a color chooser dialog. More... | |
Allows handling browser dialogs such as JavaScript alert, confirmation and prompt.
void DotNetBrowser.DialogHandler.OnAlert | ( | DialogParams | parameters | ) |
This method is invoked when JavaScript alert dialog should be displayed. In this method you can display standard modal dialog with the message that you can get from parameters. Please note that it's not necessary to display modal dialog in this method.
parameters | The alert dialog parameters. |
Implemented in DotNetBrowser.WPF.WPFDefaultDialogHandler, and DotNetBrowser.WinForms.WinFormsDefaultDialogHandler.
CloseStatus DotNetBrowser.DialogHandler.OnBeforeUnload | ( | UnloadDialogParams | parameters | ) |
This method is invoked before web page unload. Some web page may override the window.onbeforeunload JavaScript function, so that a confirmation dialog will be shown every time when user try to reload web page or navigate to another web page. You can use this method to display an appropriate confirmation message dialog to ask user whether he or she really wants to leave or reload the web page.
parameters | The unload dialog parameters such as dialog message and reload flag. |
Implemented in DotNetBrowser.WPF.WPFDefaultDialogHandler, and DotNetBrowser.WinForms.WinFormsDefaultDialogHandler.
CloseStatus DotNetBrowser.DialogHandler.OnColorChooser | ( | ColorChooserParams | parameters | ) |
This method is invoked when color selection is to be done, when user selects HTML5 input element with color type. You can use this method to display a color chooser dialog.
parameters | The color chooser dialog parameters. |
Implemented in DotNetBrowser.WPF.WPFDefaultDialogHandler, and DotNetBrowser.WinForms.WinFormsDefaultDialogHandler.
CloseStatus DotNetBrowser.DialogHandler.OnConfirmation | ( | DialogParams | parameters | ) |
This method is invoked when JavaScript confirmation dialog should be displayed. In this method you can display standard modal dialog with the message that you can get from parameters. Please note that it's not necessary to display modal dialog in this method.
parameters | The confirmation dialog parameters. |
Implemented in DotNetBrowser.WPF.WPFDefaultDialogHandler, and DotNetBrowser.WinForms.WinFormsDefaultDialogHandler.
CloseStatus DotNetBrowser.DialogHandler.OnFileChooser | ( | FileChooserParams | parameters | ) |
This method is invoked when file selection is to be done. You can use this method to display a file chooser dialog with the required type that you can find out from the FileChooserMode.
parameters | The file chooser dialog parameters such as dialog mode, etc. |
Implemented in DotNetBrowser.WPF.WPFDefaultDialogHandler, and DotNetBrowser.WinForms.WinFormsDefaultDialogHandler.
CloseStatus DotNetBrowser.DialogHandler.OnPrompt | ( | PromptDialogParams | parameters | ) |
This method is invoked when JavaScript prompt dialog should be displayed. In this method you can display standard modal dialog with the message and with text field with default prompt text that you can get from parameters. Please note that it's not necessary to display modal dialog in this method.
parameters | The prompt dialog parameters such as dialog message and default prompt text. |
Implemented in DotNetBrowser.WPF.WPFDefaultDialogHandler, and DotNetBrowser.WinForms.WinFormsDefaultDialogHandler.
CloseStatus DotNetBrowser.DialogHandler.OnReloadPostData | ( | ReloadPostDataParams | parameters | ) |
This method is invoked when attempt to reload a web page that has POST data and the user must confirm whether POST data must be sent again or reload must be canceled.
parameters | The reload dialog parameters. |
Implemented in DotNetBrowser.WPF.WPFDefaultDialogHandler, and DotNetBrowser.WinForms.WinFormsDefaultDialogHandler.
CloseStatus DotNetBrowser.DialogHandler.OnSelectCertificate | ( | CertificatesDialogParams | parameters | ) |
This method is invoked when web server requires authorization via SSL client certificate, to access the list of the certificates from the system storage that match the server criteria.
parameters | Use it to get information about SSL authorization request, get a list of available certificates and select the required one. |
Implemented in DotNetBrowser.WPF.WPFDefaultDialogHandler, and DotNetBrowser.WinForms.WinFormsDefaultDialogHandler.