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

Re: getting combo value,not textbox value

Subject: Re: getting combo value,not textbox value
From: himanshu padmanabhi <himanshu.padmanabhi@xxxxxxxxx>
Date: Sun, 1 Mar 2009 18:37:34 +0530
Re:  getting combo value
Thank you for replying.

I Moved the script element inside of the body.Still submit is not
working and I am not getting any error from browser/firebug.So I am
really confused now what I am missing here.the same code submits the
form If I execute it as HTML.


On Sat, Feb 28, 2009 at 8:24 PM, Martin Honnen <Martin.Honnen@xxxxxx> wrote:
> himanshu padmanabhi wrote:
>
>> and this is my modified XSL file which is generating above html code.
>> It shows table with all elements as expected.Only form.submit not working.
>> please help.Is there any other way of form.submit.
>> Should I use hidden button to submit?
>>
>> <xsl:template match="Records">
>>    <html>
>>    <body>
>>    <form name="form1" method="POST" action="one.cgi">
>>    <tr>
>>        <td>
>>            <xsl:value-of select="label1"/>
>>        </td>
>>        <td>
>>            <xsl:value-of select="desc1"/>
>>        </td>
>>        <td>
>>            <xsl:if test="label1 = 'machine name'">
>>                <select name="machine_name">
>>                    <xsl:call-template name="str:tokenize">
>>                    </xsl:call-template>
>>                </select>
>>            </xsl:if>
>>        </td>
>>    </tr>
>>
>>     <tr>
>>         <td>
>>               <xsl:value-of select="label2"/>
>>         </td>
>>         <td>
>>               <xsl:value-of select="desc2"/>
>>        </td>
>>        <td>
>>            <xsl:if test="label2 = 'limit'">
>>                <input type="text" name="limit" value="" />
>>            </xsl:if>
>>        </td>
>>    </tr>
>>    </form>
>>    </body>
>>    </html>
>>    <script type="text/javascript">
>>          document.form1.submit();
>>    </script>
>> </xsl:template>
>
> Move the script element inside of the body
>
>   </form>
>   <script type="text/javascript">
>   document.forms.form1.submit();
>   </script>
>   </body>
>   </html>
>
> Also check the error console of your browser whether it shows any errors
> when the code does not work.
>
> --
>
>        Martin Honnen
>        http://JavaScript.FAQTs.com/
>
>



--
Regards,
Himanshu Padmanabhi

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.