XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
stieve sSubject: hiding and showing the table in html through xslt
Author: stieve s
Date: 15 Mar 2007 03:01 AM
i am trying to launch the html screen in that i have got hte code snippet that is inserted in the table. i want to expand or collapse the table using some link ,i am usng java script for that on in xslt but it is not working out cna any one solve my problem?
i have inserted the table betwen <div> tags and used one anchor before the table...



can u please tell me other alternative if not theis work out?


-------------------
code is here ..


<a href="javascript:showhide('<generated id>');">[click here to show /
hide]</a>
<div id="<generated id>" style="display:none">


<table width="100%" align="center" name ="CodeSnippet" border="2" bgcolor="white">

<tr>
<th bgcolor="winered">RmType</th>
<th bgcolor="winered">CodeSnippet</th>
</tr>
<xsl:for-each select="//container//eps//ep//Codesnippets//Codesnippet[@rmtype='SQL Server']">
<tr>
<td bgcolor="#F5F5DC"><xsl:value-of select="@rmtype"/></td>
<td bgcolor="#F5F5DC"><xsl:value-of select="."/></td>
</tr>
</xsl:for-each>

</table>
</div>

<script type="text/Javascript"> function toggleblocks (postid) {
var whichpost = document.getElementById(postid);
if (whichpost.className=="expandblock") {
whichpost.className="collapseblock";
}
else {
whichpost.className="expandblock";
}
}
</script>

Posttop
(Deleted User) Subject: hiding and showing the table in html through xslt
Author: (Deleted User)
Date: 15 Mar 2007 06:03 AM
Steve,
this is more a question for an HTML/JavaScript mailing list.

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.