• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

Freezing the left hand side of a table/page (similar to freeze panes in Excel)

I have an ASP page which basically displays a list of employee names together with data for those employees. Some fields are input fields.

The problem is that users have to scroll over to the right of the page to input data and then they can't see the employee name which is on the far left hand side.

So it's difficult for them to quickly input data down the page without scrolling to the left and right.

Is there a way of doing something similar to freeze panes in Excel where we can keep the name on the left hand side of the page as the users scroll to the right?

0
obicham
Asked:
obicham
  • 3
  • 3
  • 2
  • +4
1 Solution
 
hongjunCommented:
I don't think there's a way to do that. The only way to do that is that perhaps use <br> to make sure that the 2 columns display on different rows and not different columns.

hongjun
0
 
dredgeCommented:
use <div>'s to create floating layers on the left hand side.

the problem with this, is that most browsers don't like the use of DIV's inside of forms.
0
 
hongjunCommented:
I never like the idea of having a layer "following" you around.

hongjun
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
dredgeCommented:
you may not like that idea, personally, but obicham is asking for that.
0
 
newjackCommented:

Using an IFrame or plain frame could be used to get that effect as well.

0
 
dredgeCommented:
the problem with IFrame or Frames, is that it's about impossible to keep track of which Name is associated with what line of form fields because these items scroll independent of any other part of the page.

with a Div, you can set it to always stay on the left side of the screen, but it will still scroll verticaly with the rest of the page.
0
 
newjackCommented:

yep, but it's horizontal scrolling that's the problem.
He wants to scroll to the right, so if the IFrame's width is the same as the table on the left (with the names), there's no problem

0
 
obichamAuthor Commented:
I don't think I can use the <DIV> if most browsers don't like it.
0
 
webwomanCommented:
Rethink your layout. There's no reason why you can't have the employee name, and the data that relates to them displayed under their name. Then you don't have ANY horizontal scrolling, don't need layers, and people don't get confused.

You can control how it looks. It doesn't have to look like Excel.
0
 
AlfaNoMoreCommented:
You could always have the employee name in one frame (down the left hand side), and all other info in a frame on the right. Then you'd need to find some javascript (and I have seen some, but it was years OK!), that will scroll vertically the left hand frame in conjunction with the right.

You'll probably find it only works in IE, but this might not be a problem if you're developing an Intranet and all your employees are using IE (which is usually the case in large organizations?).

Found this for you. Should do the trick?

http://developer.irt.org/script/scroll.htm

Daniel.
0
 
hongjunCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[PAQ with NO REFUND]

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

hongjun
EE Cleanup Volunteer
0
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now