How to implement third party javascript in outsystems
Application Type
Reactive
Platform Version
11.16.0 (Build 35506)

I am working on webix widgets it has pre defined css and javascript widgets. I can run it in traditional programming like this. Can someone guide me how to implement it in outsystems ?

Hi Hammad,

First Approach - You can download the scripts from CDN URL and import it in Scripts folder. At screen level you need to add imported scripts in Required Scripts properties.



Second Approach - Add below Javascript in Screen ready event to reference from CDN -

var scriptNode = document.createElement('script');

scriptNode.src='https://www.gstatic.com/dialogflow-console/fast/messenger/bootstrap.js?v=1';

document.head.appendChild(scriptNode);


Thanks

Vinod


mvp_badge
MVP

Hi Hammad,

I'm not a fan of just directing someone to documentation, but in this case I have to since I'm not too knowledgeable regarding this subject. See here on how to integrate an external JavaScript library, and here on using JavaScript directly in your code.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.