在DITA中使用javascript

编程入门 行业动态 更新时间:2024-10-17 07:27:46
本文介绍了在DITA中使用javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, DITA(达尔文信息键入体系结构)是否支持javascript? 如果支持,请指导我们如何在DITA中使用javascript. 问候.

Hi All, Do the DITA (Darwin Information Typing Architecture) supprots javascript? If supports..please guide us how to use javascript with DITA. Regards.

推荐答案

仅询问 IBM [^ ]或 OASIS [ ^ ]直接?我的意思是说,那在Google上停留了大约2秒钟,还是您没有听说过Google? How about just asking IBM[^] or OASIS[^] directly? I mean, that ttook about 2 seconds on Google or have you not heard of Google?

我们在这些内容中进行了搜索,发现: 我们可以为< xref>,< link>和< lq>元素,它将正确执行. 例如< xref href =" javascript:alert(``Hello World'');''>单击此处获取警报框</xref> 我们尝试从href属性执行javascript用户定义的函数,但构建失败. 我们将.js文件添加到了.dita文件资源中,并尝试通过href属性引用该文件中的函数. 在使用DITA工具包将DITA文件转换为html之前,如果我们要添加JAVASCRIPT功能(以后可在html文件中使用),该怎么做?请指导我们. We googled the things and found that: We can give ''javascript:URL'' to the ''href'' attribute of <xref>,<link> and <lq> elements and it will execute it properly. e.g.<xref href="javascript:alert(''Hello World'');">Click here to get alert box</xref> We tried to execute javascript user defined functions from href attribute but build fails. We added .js files to .dita file resources and tried to refer a function from that file by href attribute.It is also not working. Before converting the DITA files into html using DITA toolkit,if we want to add JAVASCRIPT functionality which can be later used in html files, how it can be done? Please guide us.

更多推荐

在DITA中使用javascript

本文发布于:2023-11-28 13:52:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642666.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:DITA   javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!