[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Jscript in XSL

Subject: Jscript in XSL
From: <Vankadaru.Gupta@xxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Sep 2007 10:20:35 +0530
 Jscript in XSL
Hello every one,
	I heard that this is the best list to get help about XSL. That
is why I m posting this. I have XML something like this.

<CONTAINER ID="1" TYPE="1">
		<CONTROL_ID>2</CONTROL_ID>
		<CONTROL_ID>3</CONTROL_ID>
		<CONTROL_ID>7</CONTROL_ID>
</CONTAINER>

<CONTAINER ID="3" TYPE="3">
		<CONTROL_ID>11</CONTROL_ID>
		<CONTROL_ID>12</CONTROL_ID>
		<CONTROL_ID>60</CONTROL_ID>
</CONTAINER>

<CONTROL ID="2" TYPE="7">
		<CONTROLPROPS>
			<HELPTEXT>Risk ID</HELPTEXT>
			<RENDERMODE>3</RENDERMODE>
			<DATAVALUE></DATAVALUE>
			<DEFAULTVALUE></DEFAULTVALUE>
		</CONTROLPROPS>
</CONTROL>
<CONTROL ID="3" TYPE="7">
		<CONTROLPROPS>
			<HELPTEXT>Risk ID</HELPTEXT>
			<RENDERMODE>3</RENDERMODE>
			<DATAVALUE></DATAVALUE>
			<DEFAULTVALUE></DEFAULTVALUE>
		</CONTROLPROPS>
</CONTROL>
......... and so on

Whenever a button is clicked it should display a CONTAINER with the
controls (like textbox, checkbox depending on the XML). There are 3
buttons like that. Depending on the button clicked the container should
be displayed. The button name is same as container name. I have created
a <DIV ID=containername>. Based on this ID a Java Script function is
being called.  As of now all the three containers are being displayed
after applying XSL. But they should be displayed only on the click of
the respective button. I m using javascript using <msxsl:script> tag.

JavaScript:
-----------
function tabSel(){

document.getElementById('contentDiv1').style.display='block';

document.getElementById('contentDiv2').style.display='none';

document.getElementById('contentDiv3').style.display='none';

}
ContentDiv is the DIV ID given.
I hope I m clear. Can you please help me out.




DISCLAIMER:
This message contains privileged and confidential information and is intended
only for an individual named. If you are not the intended recipient, you
should not disseminate, distribute, store, print, copy or deliver this
message. Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secure or error-free as information
could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or
contain viruses. The sender, therefore,  does not accept liability for any
errors or omissions in the contents of this message which arise as a result of
e-mail transmission. If verification is required, please request a hard-copy
version.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.