XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 9th, 2004, 05:13 PM
cadmus75 cadmus75 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 7 cadmus75 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 45 sec
Reputation Power: 0
Send a message via Yahoo to cadmus75
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XSL output in JavaScript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT