That's true, though the HTML 4.0 spec has removed <disabled> from
the button context.  But because Nav 4.x+ and IE 5.x support the
attribute, you could:

<head>
<!-- if the lamer has a browser that can't read JavaScript, I
don't care if s/he sees the code or not! -->
<script type="text/javascript">
    var flag = "false";
    function disable() {
        flag = "true";
    }
</script>
</head>

<body>
    <script type="text/javascript">
        if( flag == "false") {
            document.write( "<input type='submit' value='Submit'
onclick='disable()'>");
        } else {
            document.write( "<input disabled type='button'
value='Submit'>");
        }
    </script>
</body>


Cheers!
Mark

----- Original Message -----
From: "Tike, Raju" <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 8:35 AM
> mike,
> IN HTML  in place of buttton u can use the value ="" disabled
in part of ur
> text field
> where u can have the button or text field disabled !!
>
> raju tike
> > ----------
> > From:         Mike Akerman[SMTP:[EMAIL PROTECTED]]
> > Sent:         Monday, April 16, 2001 10:53 AM
> >
> > > Have the onclick() method write a cookie with an expiration
of -1
> > > (deleted after session).  In the same JavaScript function,
test
> > > for the existence of this cookie.  if( cookie) {do
nothing}.
> > >
> > > Cheers!
> > > Mark
> >
> > This is very clever, has anyone used cookies to communicate
between
> > JavaScript and a Servlet or JSP?
> >
> >                                                 Michael
Akerman

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to