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

123
Visualizações
http request by node-red with execution the stript

I would like ask, When I use node http request from Node-red for request to any page it returned me whole page like

msg.payload="<'html>
<'script>
function A;
function B;
window.onload = function() {...
etc...
<'/script>
<'body>
<'table>"

How can I execute the functions from the script? So how it could return executed page to node-red? I mean, I need the results from the fucntions and I get just function in payload, so I don't know how could I execute function which are in payload.

Thank you Pavol

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The short answer is, you don't.

Running JavaScript embedded in a web page needs all the things a browser provides to the page, e.g. the DOM model these are just not there in the Node-RED runtime.

If you want to load and render a page then you need to look at something like node-red-contrib-nbrowser that will run the page in a virtual browser.

about 4 years ago · Juan Pablo Isaza Relatório
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