Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

131
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda