Click here to Skip to main content
15,926,062 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
Do the DITA (Darwin Information Typing Architecture) supprots javascript?
If supports..please guide us how to use javascript with DITA.

Regards.
Posted

How about just asking IBM[^] or OASIS[^] directly? I mean, that ttook about 2 seconds on Google or have you not heard of Google?
 
Share this answer
 
v2
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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900