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

124
Views
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 answers
Answer question

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 Report
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!