Where to place external Javascript code in our applications


Guest

Hi, i added this code in content html control and got Error: "'myMove' is undefined", is there any way to call a function is defined in html?

Thanks!


DecSoft

Hello starin,

You must place the Javascript code in some app's/view's/control's event (between the couple "StartJS" and "EndJS" actions) or in an external Javascript file or maybe in an app's Javascript function. Depending on where you place it then you can use it in some or other way. For example, if you place the code in an app's function you can simply call to that function. If you place the code ni an external Javascript file, you must use a bit of Javascript to call it. Take a look at the "External" app sample and also at the "External Javascript" tutorial in the App Builder's help file.

P.S. The CSS code probably can work... but is a good idea to separate it into the app's Inline CSS option or in an external CSS file.


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.