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

152
Views
trying to create embed element but its not working

I don't know why document.createElement('embed'); not working but when I put it up above let id; it works, I need it down because I want to use sheetURL variable as src

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <script src="https://live.zwidgets.com/js.sdk/1.1/ZohoEmbededAppSDK.min.js"> </script>
  </head>
  <body onload="myFunction()">
  <p id="demo"></p>
  <script type='text/javascript'>

    
    
    let id;
    ZOHO.embeddedApp.on("PageLoad", function (data){

      id = data.EntityId[0];
      ZOHO.CRM.API.getrecord({
        Entity: "Deals",
        RecordID: id,
      })

      .then(function(data) {

        const sheetID = data.data[0].Due_Diligence_Sheet_ID;
        // const sheetURL = data.data[0].Due_Diligence_Sheet_URL;
        var sheetURL = "https://sheet.zohopublic.com/sheet/published/qsiei34cf7c2f3f2049658d806b567c53659d";      

      })
    });

    var embed = document.createElement('embed');
    document.body.appendChild(embed);
    embed.src = "https://sheet.zohopublic.com/sheet/published/qsiei34cf7c2f3f2049658d806b567c53659d"; 
    embed.width = '100%';
    embed.height = '660px';

     </script>

  </body>

</html>

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!