Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
11188 Prikazi

It seems that we can't define javascript function on xml file;

I wan to know whether we can and how to?

Avatar
Opusti
Best Answer
<template id="assets_backend" inherit_id="web.assets_backend">
     <xpath expr="." position="inside">
         <script type="text/javascript">
                 function your_function(args......)
                 {
                             //statements
                  }
         </script>
       </xpath>
 </template>
Avatar
Opusti
Avtor

thank you very much

Related Posts Odgovori Prikazi Aktivnost
1
dec. 24
4429
1
okt. 20
4673
2
jun. 20
4397
5
dec. 17
5746
3
jan. 24
16724