Diff for Using javascript with DITA

Mon, 2010-03-08 05:25 by Team Ferrari22Tue, 2010-03-09 04:24 by Team Ferrari22
Changes to Body
Line 1Line 1
 
<p>
 
<p>
-
Hi All,
+
Hi All,
 
</p>
 
</p>
 
<p>
 
<p>
-
How to use javascript with DITA
+
How to use javascript with DITA
 
</p>
 
</p>
 
<ul>
 
<ul>
-
<li>We can give '<a href="javascript:URL" class="moz-txt-link-freetext"><u><span style="color: #0000ff">javascript:URL</span></u></a>'  to the 'href' attribute of &lt;xref&gt;,&lt;link&gt; and &lt;lq&gt; elements and it will execute it properly.
+
<li>We can give '<a href="javascript:URL" class="moz-txt-link-freetext"><u><span style="color: #0000ff">javascript:URL</span></u></a>'  to the 'href' attribute of &lt;xref&gt;,&lt;link&gt; and &lt;lq&gt; elements and it will execute it properly.
 
<ul>
 
<ul>
-
<li> 
+
<li> 
 
<ul>
 
<ul>
 
<li> e.g.<span style="color: #330099">&lt;</span><span style="color: #330099">xref href=<a href="javascript:alert('HelloWorld');" class="moz-txt-link-rfc2396E"><u><span style="color: #0000ff">&quot;javascript:alert('Hello World');&quot;</span></u></a>&gt;Click here to get alert box&lt;/xref&gt;</span></li>
 
<li> e.g.<span style="color: #330099">&lt;</span><span style="color: #330099">xref href=<a href="javascript:alert('HelloWorld');" class="moz-txt-link-rfc2396E"><u><span style="color: #0000ff">&quot;javascript:alert('Hello World');&quot;</span></u></a>&gt;Click here to get alert box&lt;/xref&gt;</span></li>
Line 22Line 22
 
</p>
 
</p>
 
<p>
 
<p>
-
Regards.
+
Regards.
 
</p>
 
</p>
 
<p>
 
<p>
Revision of Tue, 2010-03-09 04:24:

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

Please guide us how to use .js files with DITA.

Regards.

 

 

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I