Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

A scrolling window on JSP page

 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
we are converting a VB application to Java based. In VB we have the data being displayed in a scrolling window . I am not sure about the name of the control object that is being used in VB for doing this.
I want to have a similiar window on my JSP page.
Has any one done it ?
Where can I find a scrollable window like that ?
 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way to get a scrolling window inside your page is to use an iframe. An iframe is like a normal frame in that it opens a view of another HTML page, but different from normal frames in that it doesn't require a frameset - it works more like a table cell or div within the rest of your HTML.
..Unless by "scrolling window" you mean a form element, in which case you might be looking for a list box (a list of values from which the user can select, like a drop-down menu, but expanded). That's accomplished by using a <select> element with the rows attribute set to >1.
hth,
g.
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have an example Garann ?
Thanks
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charlie,
How can you select a row from this window ?
Thanks
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charlie
I tried using ur code
seems like I need a javascript also, can u give me the code ?
maya
 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Drag and Drop is from JavaScript the definitive guide by David Flannagan
http://www21.brinkster.com/sturman/js/portableDrag.js
The dynamic table is something I wrote.I have an updated version that has more features.
This early version not very good but you are welcome to it...maybe you can use it as an example to create your own.
http://www21.brinkster.com/sturman/js/dtable.js
The main changes I made to the dynamic table object was to add many prototype methods for setting style and handling events.These can be overridden so that each cell of a table can be customized as far as how content is computed or how the cells style is set.
In general,I recommend javascript the definitive guides 4th edition by David Flannigan.
[ September 26, 2002: Message edited by: Charlie Sturman ]
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charlie
The link says remote access is forbidden
can you send it to me ?
 
Charlie Sturman
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by maya menon:
Charlie
The link says remote access is forbidden
can you send it to me ?


with the .js file src:
http://www21.brinkster.com/sturman/dtable/dtableSrc.html
 
Charlie Sturman
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by maya menon:
Charlie,
How can you select a row from this window ?
Thanks


Maya,
You would have to write an event handler
for mouseover or mouseclick then attach it to
the "Dtable" instance container.I have done similiar funcitonality with Dtable.
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Charlie,
Maya
 
Ranch Hand
Posts: 4702
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seems some posts to this thread were deleted...i didnt do it...garan thanks for the brief intro to i-frames i have been wondering what they are
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!