Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show results in middle of page 1

Status
Not open for further replies.

thegiraffe

Programmer
Mar 8, 2002
49
IE
I have created a summary page to display totals for several queries such as,
types of potato - 8
types of sweets - 10
and next to each one i have a kind of '>>' button which runs a javascript function to put the details for the selected item into a pre defined table i have in the center of the screen.

On the screen i only want the table to be 390 high and if the number of records displayed exceeds this i want a scroll bar on the table if possible (along the side only)

I have looked at text areas but unfortunately they let you edit the text and theres no lines!!

Any help much appreciated
Dave

Theres nothing worse than an idea when its the only one we have!
 
You could try a multiple line select box.
This has differnet lines, can scroll, and cant be edited.

Hope i understood you correctly.
 
You could add the disabled-attribute to your text-area-tag to avoid the user editing the contents, but that will also gray the textarea.
I guess what you want is the <div>-tag...
Example:
Code:
<div id=&quot;Layer2&quot; style=&quot;position:absolute; width:262px; height:173px; z-index:2; left: 301px; top: 113px; overflow: auto&quot;>
This is not a bug - it's an undocumented feature...
;-)
 
I have innitially gone with the layer and its looking good.

Yet i am still not satisfied...
I have changed all the px values (apart from the height) so that the area sits nicely in the designated area but when i change the screen from maximised (which may happen depending on user)the data jumps over other sections of the screen, is there a way to make it stay inline with the page?

Or do i ask too much..... Dave

Theres nothing worse than an idea when its the only one we have!
 
No worries, i took out the z index left and top and its anchored,

Fantastic heres a star!!!

Dave

Theres nothing worse than an idea when its the only one we have!
 
Thx m8 This is not a bug - it's an undocumented feature...
;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top