Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: change attribute?

From: "Han" <hp4444@------.---.----->
To: NULL
Date: 8/2/2004 8:35:00 PM
You're saying HTML Dom. html example instead of xml may be easy. Your
resultant html,

<table>
<tr>
<td>1</td>
<td><button onclick='test'>click</button></td>
</tr>
</table>

In that case, the first <td> is <button>'s parent's previousSibling. So
event code like this.parentelement.previousSibling.innertHtml=2 will do.

"Mr. Applications" <nice_guy@i...> wrote in message
news:e1dmtAkbEHA.2760@T......
> Hi,
>
> I'm new here and I'm trying to display an html page based on XML+XSL.
> In the HMTL: Im loading the XML and XSL and using:
> document.write(xml.transformNode(xsl));
>
> with the XSL I display a table with all the XML elements and here is my
> problem - I'm trying to add another column to the table, that will have a
> <input type="button"> with onclick event that will change an attribute of
an
> XML element in the current table row.....Is this possible? The following
> code shows the value of the attribute that I want to change, but I don't
> know how to change it, let's say from "0" to "1".
>
> <td>
>     <input type="button" value="button">
>         <xsl:attribute name="onclick">alert(<xsl:value-of
> select="TITLE/@nId"/>)
>         </xsl:attribute>
>     </input>
> </td>
>
> Thanks.
>
>




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent