Solved

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

Posted on 2001-08-17
12
241 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
 
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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/…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now