تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
11174 أدوات العرض

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

I wan to know whether we can and how to?

الصورة الرمزية
إهمال
أفضل إجابة
<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>
الصورة الرمزية
إهمال
الكاتب

thank you very much

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 24
4414
1
أكتوبر 20
4640
2
يونيو 20
4383
5
ديسمبر 17
5725
3
يناير 24
16710