Embed a widget script inside an app

I am trying to figure out if there is a way to embed a widget inside of a paid (Pro) app. This widget is free to use, and there must be a way to convert it to a viewable tool in Glide. The ID of the boxer can be entered via a template, but I can’t figure out how to transform the info below into either a Web Embed or a Construct HTML or a ???

Any advice would be greatly appreciated, the text below is from the data site (I added spaces after the < so the script would show up)

Step 2: Copy & Paste Setup Code
Copy the following code and paste it directly after the “< body >” tag in your html page.

<script>
  (function() {
    var boxrectag = document.createElement('script');
    boxrectag.async = true;
    boxrectag.type = 'text/javascript';
    boxrectag.src = 'https://boxrec.com/build/js/widget.js';
    var node = document.getElementsByTagName('script')[0];
    node.parentNode.insertBefore(boxrectag, node);
  })();
</script>

Step 3: Copy & Paste Boxer Tag
Copy the following code and paste it wherever you want the boxer name and record to appear in the page.
<ins data-boxrec='boxer' data-boxrec-boxer='180' ></ins>

Step 4: Change the ID# of the Boxer
Once pasted, change the ID# of the boxer from “180” to the ID# of the boxer you wish to display.
For example, if the ID# of the boxer you wanted to display was “90” then change:

data-boxrec-boxer=‘180’
to be
data-boxrec-boxer=‘90’

Just formatted that for you.

image

Is this what you want?

Well, not really - I’m seeing now that is not what I’m after - I was hoping for something like this but realize now that the widget is only what you displayed. I wish there was some way to get the other info for this app. Embedding the page is not allowed.

Thanks for looking at it

Not sure if you want this, but this site is embeddable:

Thanks, but that site does not have the database that BoxRec has, which is what we need to access. Right now I’ve got a link clicking to the individual boxer profile, but unless my client can somehow get permission from BoxRec to access their API, I think that is the best he can do for now. BoxRec is the “official” database where fight data is reported. I appreciate your suggestion, @ThinhDinh .

1 Like