Put javascript in website

Hi, don’t know if this is the right area, but I need some help with putting 2 javascripts in a website. I’m new in wix code.
This is an example of one of the scripts: https://www.portabase.nl/kinderopvangtoeslag-calculator

Hope someone can help me…

Greets, Bloom

1 Like

Hi,
It seems like you want to embed code from an external source. You can use the HTML component for that purpose.

Best,
Tal.

Thanks Tal. I did that, but it doesn’t work.

Can you share with us the code you were trying to embed?

Thanks,
Tal

Yes, of course:

Script 1
Calculator

This is an example: https://www.portabase.nl/kinderopvangtoeslag-calculator )

Script 2:
Registration

Hi,
Do you have a link to documentation in English? Moreover, can you please clarify what you would like to achieve?

Thanks,
Tal.

Hi,
Thanks for your help.
One script is a calculator which has to come on a subpage.
An example of the calculator you can see here: https://www.portabase.nl/kinderopvangtoeslag-calculator

There is no manual, below is the only thing we received. Same with the other script which is designed for the registration of new clients.

This is the only information they provide:

To place the KOT calculator on your website, put the following code
at the place where the calculator should come:

If you (or your web builder) prefer not to use the script in the middle of the page
but at the bottom or at the top, put the following code on the spot
where the calculator should come:

If you still have questions or if it is not working. Let us know and
send an email to support@atane.nl or call
+31(0)229-725566.

Hi,

Second script works fine (it displays ok when you add it via HTML component, see screenshot).

But first script gets a cross-origin error resource sharing :

Failed to load https://services.atane.nl/calculator3/settings?key=13ce5c8bc62011d8a93f792a42704a9c4af5efbe5bf9926: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://bfadad9c-e4a2-4ade-b3ad-b62a47dd79f1.htmlcomponentservice.com’ is therefore not allowed access. The response had HTTP status code 403.
Therefore you should contact support@atane.nl to inform them of the error, for this is configuration tuning on their side.

Thanks so much Jerome! Would you please be so kind to make a screenshot of where you put the second code exactly? As it doesn’t work when I do it.
Maybe you can send me your mail address? Mine is bloomcool.design@gmail.com

My pleasure. Just sent you the doc, reply by mail if needed.

Did it work for you? I ma trying similar to putting

but where do you put it?