Need a knowledge base like this for your business?


Javascript Section

By Kim Dixon, MyPhotoApp Training Guru

Created: November 2, 2017, 8:01 pm UTC
Last updated: February 13, 2019, 2:35 pm UTC

The javascript section works in a similar way to the HTTP section and allows you to add third party javascript code.  

For example: Adding the following script in a java section will cause an alert message to appear when the app URL is loaded. 

alert('hi there'); 


 

The code gets executed outside of the region that MyPhotoApp executes.    To continue to the App you need to press OK to close the Alert message and load the app. 

This can be a useful feature for when you have javascript that a 3rd party has provided that does not have any visual elements that you want to embed in the app.

An example of this is adding a chat bot to your website index app  using a service like Drift.  this allows you to integrate their chat bot into your apps using Javascript.

This is what it looks like on your app it will remain in the lower right hand corner.



This is what it looks like open





You can sign up for a free account for a single chat  integration here

www.drift.com


You can learn more about how java Code can be utilized here 


Try Java Script