Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

132
Views
CefSharp does not register js object for remote users

I have a page on a remote server that is displayed on cefsharp WebBrowser, for obvious reasons of compatibility with some components that require FlashPlayer I cannot change the cef version.

I know there are newer versions that still support flashplayer, but i'm having trouble getting flash content to start automatically. Anyway, the code below works just fine for me, but not for users that view the page online.

they get the following error: TypeError: appCommand.sendMessage is not a function

c#

ChromiumWebBrowser browser = new ChromiumWebBrowser("link");
browser.RegisterAsyncJsObject("appCommand", this, true);

public void SendMessage(string msg)
{
    MessageBox.Show(msg);
}

js

document.getElementById('test-button').onclick = function()
{
    appCommand.sendMessage("Hello world!");
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!