CEFSharp OnJSDialog

Đã Đóng Đã đăng vào 2 năm trước Thanh toán khi bàn giao
Đã Đóng

Good afternoon!

I am working on a solution using Visual Studio 2017 in VB using CefSharp for a Chrome webbrowser and I need to suppress or stop any alerts or actions posted back to the page with JavaScript.

I am 99% sure I need to reference the OnJSDisalog class, but I don't know how to do it in VB.

C# Example:

public bool OnJSDialog(IWebBrowser browserControl, IBrowser browser, string originUrl, CefJsDialogType dialogType, string messageText, string defaultPromptText, IJsDialogCallback callback, ref bool suppressMessage)

{

suppressMessage = true;

return false;

}

I cannot translate this to VB and I'm not sure how to call it from the browser.

Can you help?

Thank you,

Nathan

Kĩ thuật Kiến trúc phần mềm Development JavaScript Web Development

ID dự án: #31884545

Về dự án

1 đề xuất Dự án từ xa 2 năm trước đang mở

1 freelancer đang chào giá trung bình $25 cho công việc này

jaquedeveloper

Hello, I analyzed your project and noticed that I have the necessary training and skills for an effective development, of high quality and in the shortest possible time. I have ten years of programming experience and t Thêm

$25 USD / giờ
(10 Nhận xét)
5.1