Solved

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

Posted on 2001-08-17
12
246 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using Classic ASP inside HTML pages 2 71
Server Timeout with Loop 6 59
Writing comments on <p></P> or paragraph 2 23
Debugging Html 8 32
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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/…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 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