Can't u combine the two?
when u update you readonly, do like this ?
//Set all the readOnly here before
index = 0;
for(i = 0; i < NrOfFields; i++)
{
if(field.readOnly != true)
{
document.form.field.tabIndex = index;
index++;
}
else
{
// If you have to remove a tabIndex, you do it here... I don't
// know how to do that, if you even can do it...
}
}
Now you only set the tabIndex on the one that's not readonly...
// Jan Aren�
-----Ursprungligt meddelande-----
Fr�n: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]F�r Vibha Jindal
Skickat: den 31 oktober 2001 10:11
Till: [EMAIL PROTECTED]
�mne: Re: Tab order in a JSP
No, they are not permamnently readonly.
I am using field.readOnly = true;
this means it readonly.
----- Original Message -----
From: Badrinarayan K. Melkote <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 2:34 PM
Subject: Re: Tab order in a JSP
> I would like to know
> 1. Are the readonly fields in the form permanently readonly?
> If not how do u make the form element readonly thro' scripts?(i think its
> not possible)
> 2. Are u are disabling it?
>
>
> ----- Original Message -----
> From: "Vibha Jindal" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 31, 2001 11:51 AM
> Subject: Tab order in a JSP
>
>
> > Hi,
> >
> > I am trying to set the tab order in a JSP and am using tabindex for
that.
> > The problem I am encountering is that the tab enters a readonly field
and
> > then does not tab out because the way I am making a field readonly is by
> > using readonly and onfocus = this.blur()
> >
> > Can anyone help?
> >
> > Regards,
> > Vibha
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://archives.java.sun.com/jsp-interest.html
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > http://www.jguru.com/faq/index.jsp
> > http://www.jspinsider.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com