Widget will not run JS.

Widget will not run JS.

Hello, I have installed the nodeJS application and it works great. I created a package with it for a widget. A simple one. When I add the widget to a creator page the JS won't run.

I also downloaded the JS SDK but wasn't sure where to put that. Does it get packaged together? Does it just sit on my machine and get referenced during packaging? Here is the simple widget I am trying to run:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">

<script src="js/widgetsdk-min.js"></script>
<script type="text/javascript">
ZOHO.CREATOR.init()
        .then(function(data) {
          document.getElementByID("myNewTitle").innerHTML = "Welcome 3";
alert("test");
        });
</script>

  </head>
  <body>
    <h2 id="myNewTitle">Attempt 13</h2>


  </body>
</html>

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方