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

158
Views
Passing from javascript to Avada wordpress php

Within Avada wordpress builder I can add php elements to a page, but I want those php elements to accept input from javascript code on other parts of the site. Right now I have a post request in javascript

var xhr = new XMLHttpRequest();
    xhr.open("POST", "https://website/postRequests", true);
    xhr.setRequestHeader('Content-Type', 'application/json');
    xhr.send(JSON.stringify({
        value: "test value"
    }));

And php code for accessing said request

document.getElementById('comparison_1').innerText = $_GET['https://website/postRequests?value'];

I'm not sure how to link the two together. How do I send the post request to a different part of the site that uses php code if said php code is lying behind Avada?

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!