Diff for Using javascript with DITA
Mon, 2010-03-08 05:25 by Team Ferrari22 | Tue, 2010-03-09 04:24 by Team Ferrari22 | ||
---|---|---|---|
next diff > | |||
Changes to Body | |||
Line 1 | Line 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 <xref>,<link> and <lq> 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 <xref>,<link> and <lq> elements and it will execute it properly.
|
<ul>
| <ul>
| ||
- | <li>
| + | <li>
|
<ul>
| <ul>
| ||
<li> e.g.<span style="color: #330099"><</span><span style="color: #330099">xref href=<a href="javascript:alert('HelloWorld');" class="moz-txt-link-rfc2396E"><u><span style="color: #0000ff">"javascript:alert('Hello World');"</span></u></a>>Click here to get alert box</xref></span></li>
| <li> e.g.<span style="color: #330099"><</span><span style="color: #330099">xref href=<a href="javascript:alert('HelloWorld');" class="moz-txt-link-rfc2396E"><u><span style="color: #0000ff">"javascript:alert('Hello World');"</span></u></a>>Click here to get alert box</xref></span></li>
| ||
Line 22 | Line 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.
-
- 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.
Please guide us how to use .js files with DITA.
Regards.