Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] getting combo value,not textbox value

From: himanshu padmanabhi <himanshu.padmanabhi@--------->
To:
Date: 3/1/2009 1:08:00 PM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent