CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    17

    Using javascript with DITA

    Hi All,
    How to use javascript with DITA

    •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.

    Regards.



    Regards.
    Last edited by team_ferrari22; March 9th, 2010 at 02:36 AM.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Using javascript with DITA

    DITA is an XML-based language architecture. JavaScript is completely different...it's not based on any tags whatsoever.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured