Try this out!

<HTML>
<HEAD>
<SCRIPT LANGUAGE="Javascript">
        function showValue(){
                alert (document.form1["abc.txt"].value);
                return true;
        }
</SCRIPT>
</HEAD>

<FORM Name="form1">
<INPUT TYPE=Text Name="abc.txt">
<INPUT TYPE=Button Name=testbutton onClick="showValue()">
</FORM>

</HTML>

- V.M.

If it is to be, it is upto me.



> -----Original Message-----
> From: [Vinod Govindan] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 04, 2000 10:52 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: A javascript question.....please help
>
> I dont think you can use a dot in a name and if you try to access the
> element as document.<formname>.abc.txt.value
>
> javascript will assume it to be two diffrenet object "abc" and "txt" and
> will give an error. I thinkthe best solution would be to eliminate the
> dot.
> cause there is no escape character for a "dot" Atleast not that i know of.
>
>
>
>
>
>                     Divya M A
>                     <divya_ma@TRIGENT        To:
> [EMAIL PROTECTED]
>                     .COM>                    cc:
>                     Sent by: A               Subject:     A javascript
> question.....please help
>                     mailing list
>                     about Java Server
>                     Pages
>                     specification and
>                     reference
>                     <JSP-INTEREST@JAV
>                     A.SUN.COM>
>
>
>                     05/04/00 04:41 AM
>                     Please respond to
>                     A mailing list
>                     about Java Server
>                     Pages
>                     specification and
>                     reference
>
>
>
>
>
>    I have an input box in a form with the name having a dot in it,;i.e; a
> name like "abc.txt". I want to read the value of this input box in a
> javascript function. How do I do it?
> Thanx in advance,
> Divya.
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to