[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-scriptlets
Subject:    Re: javascript
From:       Sushil Tyagi <styagi () NPI ! STPN ! SOFT ! NET>
Date:       2000-03-08 4:58:41
[Download RAW message or body]


Hi All,

    Thanks for the reply, seems ok to me, but the problem is a bit
different, I have done the same(to enable/disable text boxes on radio button
clicks) and it works on IE but I want to make it work for NETSCAPE also ,
How do I do that ?

thanks in anticipation
Sushil

----- Original Message -----
From: Rama Uppugunduri <rama.uppugunduri@MARTINDALE.COM>
To: <Scriptlets@DISCUSS.MICROSOFT.COM>
Sent: Wednesday, March 08, 2000 1:02 AM
Subject: Re: javascript


Sushil
<HTML>
        <HEAD>
        <TITLE>Radio Box</TITLE>
        <SCRIPT LANGUAGE="JAVASCRIPT">
                function ClickIt(fname)
                {
                        alert(fname);
                }
                function TextClick() file://This will not work in NC/NN,
works
only in IE.
                {
                        document.form1.text1.disabled=true; file://This
grays out
the text box.
                        file://document.form1.text1.readOnly=true;
file://This will
allow you only to read the text box contents.
                }

        </SCRIPT>
        </HEAD>
        <BODY>
                <form name="form1">
                        <P><INPUT name="radio1" type="radio"
onClick="ClickIt(this.name); alert('1')"></P>
                        <P><INPUT name="radio2" type="radio"
onClick="ClickIt(this.name); alert('2')"></P>
                        <P><INPUT name="radio3" type="radio"
onClick="ClickIt(this.name); alert('3')"></P>
                        <P><INPUT name="radio4" type="radio"
onClick="ClickIt(this.name); alert('4')"></P>
                        <textarea name="text1"
onClick="TextClick()">1234</textarea>
                </form>
        </BODY>
</HTML>
Thanks
Rama B.Tech. (Elec & Elec Engg.), PGDCA, M.S. (Software Systems Engg.)
Reed Elsevier, New Providence
(908)6652821 (Office); (732)7600087 (Beeper)
(732)3390248 (Home); (908)6932058 (Mobile)



-----Original Message-----
From: Sushil Tyagi [mailto:styagi@NPI.STPN.SOFT.NET]
Sent: Tuesday, March 07, 2000 1:48 AM
To: Scriptlets@DISCUSS.MICROSOFT.COM
Subject: javascript


HI ALL,
     iam sushil from india, iam working in javascript but there are few
problems
    came under my way like onclick event of radio buttons working in IE
   but not in Netscape,also how i can disable a text box in javascript that
works
   both in IE and Netscape.Please help me to resolve these problems.
  thanks.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic