|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
XSL output in JavaScript
I'm inserting a new table row with JavaScript.
The row has input fields, one of the input fields is a select list. The select list is built from the XML. How can I output the XML built select list in the javascript function? <xsl:template name="doHtmlHeadScripts"> <xsl:text disable-output-escaping="yes"> <![CDATA[ <script language="JavaScript"> <!-- tdid = trid.insertCell(); tdid.align = "right"; tdid.innerHTML ="<select class='textinput' name='" + glType + "GLTYPEGROUPID"+ (dataRow) +"' onChange='populate(this.selectedIndex,this.name);'> <xsl:call-template name='pullDownTestGLGroupLen'> <xsl:with-param name='selectName' select='//Bonaire/RBS/GLParentList'/> <xsl:with-param name='screenName'>RevenueGLTYPEGROUPID <xsl:value-of select='position()'/> </xsl:with-param> <xsl:with-param name='test' select='@GLTYPEGROUPID'/> </xsl:call-template> </select>"; //--> </script> ]]> </xsl:text> </xsl:template> Last edited by cadmus75 : September 9th, 2004 at 05:15 PM. Reason: Better formatted code |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > XSL output in JavaScript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|