Embedding Javascript in a Mobile application

Embedding Javascript in a Mobile application

  

Hi.


I have some JavaScript I want to embed in my Mobile site


"<script type='text/javascript' src="ThisIsNotMyRealSource"></script>"

How do I do it? I can't use an Unescaped Expression, and I have put it in a JS file on the application, but I am not sure how to run/callit

Solution

Hello Edward,

If you already provided the file for the application (mobile has made this very easy, as you can define files and use them in the screens), to call functions in it you can use the JavaScript action that is available in mobile toolbox. Just drag & drop it and execute your JavaScript.

https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/JavaScript/Extend_Your_Mobile_App_Using_JavaScript

Cheers,

Eduardo Jauch

Solution

Hi Eduardo!


Cheers, I got the JavaScript to run when I put what was in the Src file in an Outsystems profile and hey presto it called the JavaScript :)


Thanks


Edward