Running a script in an HTML Widget

Greetings,

I’m trying to get a script to run inside an HTML Widget.
Obviously, I’m not sure if I’m running into my own JavaScript or Hype limitations, but at this point I don’t even know what questions to ask.

The code/script that I want to show up in the widget can be seen in this page.
My “Hype” page is here.

I tried to attached/uploaded the Hype file, but I was surprised to see that it’s not a single file (resource folders, etc.).
If the Hype file is needed, I can get it to someone via some other means.

I hope this is embarrassingly simple.

If anyone can help me with this I’d be most appreciative.

Thanks in advance,
Robert

You can copy and paste the entire source code of your widget, and place it within the inner HTML of an HTML widget:

Select an HTML widget, switch to the element inspector, and click ‘Edit Code Snippet…’ to add code to its inner HTML.
example.zip (12.0 KB)

WOW Daniel thanks.
Embarrassingly simple.

I did not realize that I would need to put the entire html code in the widget, . . . , etc.
I already have all of that in the “head” section of the parent document.
Nonetheless, . . . your suggestion worked like a charm.

Thanks again Daniel

1 Like