• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enabling the horizontal scrollbar when the it is marked as readonly

 
gowrishankar sundararajan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having a jsp page with struts 2. we have the list box with some values which is made readonly for some users. since its readonly the scrollbar is also not movable. any idea on how to make it scrollable when its readonly?

thanks
Gowri Shankar
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't a Struts question; this is an HTML question.

Different browsers handle disabled elements in different ways, apparently (I assume you mean "disabled" since the "select" element doesn't have a "readonly" attribute). If I have a select box with 10 options, set its size to 5, and set "disabled" it's scrollable in FF and Safari.
 
gowrishankar sundararajan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Thanks for the response. I am using IE6 and the list box's disabled attribute is set to true. I have lets say 10 values and the size of the box is 5 and i have selected the 10th value i am not able to scroll down and look at the same.

Can i get some inputs on the same?

Hope my question is bit clear now.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you misunderstood me: this isn't a Struts issue--it's an HTML issue. As I said, both Firefox and Safari allow scrolling of a disabled select box. If IE doesn't, there's nothing Struts can do about that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic