Solved

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

Posted on 2001-08-17
12
245 Views
Last Modified: 2010-05-18
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
Comment
Question by:obicham
  • 3
  • 3
  • 2
  • +4
12 Comments
 
LVL 33

Expert Comment

by:hongjun
ID: 6397470
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
 
LVL 5

Expert Comment

by:dredge
ID: 6397508
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
 
LVL 33

Expert Comment

by:hongjun
ID: 6397521
I never like the idea of having a layer "following" you around.

hongjun
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 5

Expert Comment

by:dredge
ID: 6397548
you may not like that idea, personally, but obicham is asking for that.
0
 
LVL 3

Expert Comment

by:newjack
ID: 6397595

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

0
 
LVL 5

Expert Comment

by:dredge
ID: 6397607
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
 
LVL 3

Expert Comment

by:newjack
ID: 6397626

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
 

Author Comment

by:obicham
ID: 6397628
I don't think I can use the <DIV> if most browsers don't like it.
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6398337
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
 
LVL 9

Expert Comment

by:AlfaNoMore
ID: 6409561
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
 
LVL 33

Expert Comment

by:hongjun
ID: 8672619
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
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8736329
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question