Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin 7 embeding Javascript code
Hi All,
I am new to vaadin and enjoying it.
Recently i have a requirment to embed a button from third party. Basically they give us a small piece of code with a javascipr libray link(like addthis) and we have to put that code in our website and a nice Button will be displayed. But i am unable to find a way to do so. In normal html just copy paste of that code works.
I tried CustomLayout and Label but it doesnt work.
This is the code which need to be embeded, which will display a payment button.
<a href="https://www.instamojo.com/@SwarajAbhiyan/le05a42079782478ab664ad51c9aefd4f/" rel="im-checkout" data-behaviour="remote" data-style="light" data-text="Test Button"></a>
<script src="https://d2xwmjc4uy2hr5.cloudfront.net/im-embed/im-embed.min.js"></script>
Thanks in advance
Ravi
Hi,
have you checked this Wiki page yet? https://vaadin.com/wiki/-/wiki/Main/Integrating%20a%20JavaScript%20library%20as%20an%20extension
There's also a bit about integrating JavaScript components in the Book of Vaadin: https://vaadin.com/docs/-/part/framework/gwt/gwt-javascript.html
Hope this helps,
Olli