DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2008
    Posts
    3

    how to change values in dropdown list on click of radiobutton in xsl

    I have written the following code for displaying radio button and dropdown lists in xsl , I want that on the click of the radio button ,the drop down list should be populated with some values .
    Can you help me on that ??
    Code:
    td width="10%">
    <xsl:element name="input">
    <xsl:attribute name="type">radio</xsl:attribute>
    <xsl:attribute name="name">ProductType</xsl:attribute>
    <xsl:attribute name="value">Retail Product</xsl:attribute>
    <xsl:attribute name="checked"/>
    </xsl:element>
    </td>
    
    <td valign="top">
    <select name="productlist" class="dropdown">
    <xsl:element name="option">
    <xsl:attribute name="value">Me</xsl:attribute>
    </xsl:element>
    </select>
    </td>
    Last edited by Hack; 11-12-2008 at 01:40 PM. Reason: Added Code Tags

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,652
    Where would the values be coming from?

    A text file?
    Database?
    Hard coded?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Nov 2008
    Posts
    3
    The values that are populated in the dropdown list are coming from the database . To pick up these values from the database , i have written a stored procedure .

  4. #4
    Join Date
    Nov 2008
    Posts
    3
    what if i hardcode the values .. for the dropdown list ??... can you then help me out on this?

Similar Threads

  1. Checkboxes inside dropdown list
    By srinivasc_it in forum ASP.NET
    Replies: 2
    Last Post: 10-31-2007, 12:21 AM
  2. Dual boot of Linux with Windows 2000.
    By Jacob Peter K in forum Open Source
    Replies: 8
    Last Post: 06-02-2004, 02:20 AM
  3. Populating 2 Dropdown List control
    By Nelson in forum ASP.NET
    Replies: 1
    Last Post: 06-23-2003, 10:03 AM
  4. Replies: 2
    Last Post: 01-10-2002, 11:39 AM
  5. Change selected attribute by xsl
    By yanir in forum XML
    Replies: 0
    Last Post: 01-04-2001, 01:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links