Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript css issue

 
G.Sathish kumar
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using spring and i am getting the result set as List<Map> and the result set is dynamic i mean it is dynamic number of columns need to be displayed.

i diplayed every thing with div option and used the scroll bar but insde of div for each data i have a component to update the data.

for first and secon column i am freezing using the

top: expression(document.getElementById("tbl-container").scrollTop-2); /* IE5+ only *//*

so it i working but when use the scroll bar the component is getting collapsed with the freezed column

can any one knows abou this please tell me?
 
Campbell Ritchie
Sheriff
Posts: 48921
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We discuss JavaScript in a different forum from Java. Moving.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That expression will not work in IE8 since Microsoft dropped expression support.

You will probably need to look into using onscroll to get better browser coverage.

Eric
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you set position relative on the element and ALSO the parent element?

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64828
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Sathish Kumar.G", please check your private messages for an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic