Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 23rd, 2005, 02:28 AM
Authorized User
 
Join Date: Jul 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default clarification in xslt

Hi All,

       My requirement is like when I select one checkbox then others
should get cancelled means that it has to act like a radio button.

so did like that but it reflects on other pages also.

since i'm new to this xslt i am not able to identify that segrigation
between the pages.

I think that multiple pages are calling the same function.


can you help me out in this regard.


The following is the code segment which does the function.


<xsl:choose>
                            <xsl:when test="$nbsummaryfalse!=0 or $checkboxes='true'">
                                <TD>
                                <input id="{concat('chckbox_', position())}" type="checkbox" name="rowselection" value="{position()}"/>
                                <xsl:if test="$submit='ap' and ./Field[@name='AvailabilityStatus']='Offline'">
                                    <xsl:element name="Script">{getObj('chckbox_'+'<xsl:value-of select="position()"/>').disabled=true;}</xsl:element>
                                </xsl:if>
                                <xsl:if test="$submit='ap' and $nbdelbut!=0 and $nbEntry>1 and ./Field[@name='AvailabilityStatus']!='Offline'">
                                    <xsl:element name="Script">{document.forms.tableview.elements.a llrow.disabled=false;}</xsl:element>
                                                </xsl:if>
                                </TD>
                                <Script>
                                    var o = getObj('chckbox_'+'<xsl:value-of select="position()"/>');
                                </Script>
                            </xsl:when>
                            <xsl:otherwise>
                            </xsl:otherwise>
                        </xsl:choose>

I just added one function selectOne in that input tag,

<input id="{concat('chckbox_', position())}" type="checkbox" name="rowselection" value="{position()}" onClick="selectOne(this.value)"/>

then i wrote a function defintion is java script.
its working fine but samething is reflecting on other pages also.
i want to prevent the same.



Thanks and Regards








Similar Threads
Thread Thread Starter Forum Replies Last Post
xsl clarification... rajesh_css XSLT 1 October 2nd, 2008 01:56 AM
STL's clarification sspr C++ Programming 1 February 23rd, 2006 04:43 AM
Clarification on Namespace sathya.n XML 1 March 2nd, 2005 10:24 AM
OO Advise and Clarification rodmcleay General .NET 1 October 14th, 2004 09:51 PM
design issue(clarification) eyan C# 0 February 19th, 2004 12:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.