wood burning stoves 2.0*
The moose likes Struts and the fly likes Disable fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Disable fields" Watch "Disable fields" New topic
Author

Disable fields

Shashi Iyyanar
Greenhorn

Joined: Feb 26, 2004
Posts: 4
Hi all,
I am trying to disable textarea and a list of select boxes in my application by setting disabled attribute of textarea and select boxes to true.This works fine in Internet Explorer browser.But,I am encountering some problems while using Netsacpe browser.The fields do not get disabled at all.What may be the problem?Please provide a solution to this problem.
Waiting for a positive response.Thanx in advance.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Shashi,
What version of Netscape are you using? NS 4.7 doesn't support disabling fields. NS 6 and above support this feature.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Shashi Iyyanar
Greenhorn

Joined: Feb 26, 2004
Posts: 4
Originally posted by Jeanne Boyarsky:
Shashi,
What version of Netscape are you using? NS 4.7 doesn't support disabling fields. NS 6 and above support this feature.
Shashi Iyyanar
Greenhorn

Joined: Feb 26, 2004
Posts: 4
Hi,
Sorry for the earlier blank reply.I am developing a Struts-based application and the problem lies in disabling Struts components such as <html:textarea> and <html:select> in Netscape 4.7.Is there any workaround for this problem in Netscape 4.7?Please reply ASAP.Thanx in advance.
Kirtikumar Puthran
Ranch Hand

Joined: Mar 04, 2003
Posts: 37
Hi Shashi,
<TEXTAREA NAME="kirti" ROWS="" COLS="" onFocus="this.blur();">asdasdad</TEXTAREA>
<html:SELECT NAME="" onFocus="kirti.focus();" onChange="kirti.focus();">
<option>1</option>
<option>2</option>
</html:SELECT>
hope this shud work
pls try this out with different verions of IE and Netscape...also u cud even show these fields in a different colour (probably grey) to indicate to the user that they are disabled.


Regards,<br />Kirti
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disable fields
 
Similar Threads
Unchanged dynamically created check boxes not in request object.
Question on RELOAD of JSP page AFTER facesMessage fixed
enter button doesn't work on select boxes
how to make visible 2 combo boxes
to get value of disabled check box value in action class