在DITA中使用javascript [英] Using javascript with DITA

查看:157
本文介绍了在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 [
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆