473,624 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need a scroll button

134 New Member
Hi

i hav a list of 20-30items from which another page is called in the same window.,

i need to display it in a fixed size such tht 10items are listed fixed and others are viewed by scrolling., similar to frame with scroll button.

but i dont want to do this using frame since i need to refresh the new content in the same page.,

and i also dnt want the whole page to come inside the frame.,

any ideas??

regards
vijay
Aug 13 '08 #1
5 2942
Dormilich
8,658 Recognized Expert Moderator Expert
I would place the items (I suppose they are links, right?) in a div and let the scrolling happen whenever it is needed by the browser (you never know what the window size of a user is, because some like their windows large and some not). if the list exends over the visible area, scrolling will appear.
If you want the top 10 items always on top use a div with position: fixed (though not working in IE, there you probably need javascript)
Aug 24 '08 #2
ilayacute
17 New Member
try 'overflow' properties in css it will helps u right?

accept pain......
ilaya
Aug 26 '08 #3
shadowstrike
21 New Member
Use
Expand|Select|Wrap|Line Numbers
  1. overflow:scroll
in your css file

Demo is shown below:-

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  
  3. <body>
  4.  <style type="text/css">
  5. .search-result{
  6.  
  7.     height: 150px;
  8.     width: 205px;
  9.     border: 1px solid;
  10.     overflow: scroll;
  11. }
  12. .search-result .filter{
  13. margin-top: 30px;
  14. float: left;
  15. word-wrap: break-word;
  16. padding: 5px 10px;
  17. line-height: 15px;
  18. background-color: white;
  19.  </style>
  20.     <div class="search-result">
  21.                         <div class="filter">
  22.                             <h3>Filters Applied</h3>
  23.                             <div class="source">Gender</div>
  24.                             <div class="user-list">
  25.                                 <span><input type="checkbox" name="gender" class="radio" value="Male" /> Male</span>
  26.                                 <span><input type="checkbox" name="gender" class="radio" vlaue="Female" /> Female</span>
  27.                             </div>
  28.                             <div class="source">Country</div>
  29.                             <div class="user-list">
  30.                                 <span><input type="checkbox" value="India"> India</span>
  31.                                 <span><input type="checkbox" value="USA"> USA</span>
  32.                                 <span><input type="checkbox" value="UK"> UK</span>
  33.                                 <span><input type="text" value="Enter another country"></span>
  34.                             </div>
  35.  
  36.     </div>
  37.  
  38.  
  39. </body>
  40.  
  41. </html>
  42.  
  43.  
Aug 23 '13 #4
Phyo Thinza
2 New Member
I think, it is possible by using

overflow:auto;
Sep 10 '13 #5
Exequiel
288 Contributor
it is better to use overflow:auto;, but you need first to set your fixed height;
Sep 10 '13 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
7767
by: cmay | last post by:
I am trying to use scrollIntoView to programatically scroll an area on one of my pages. It wors just like you would expect it to when the page itself doesn't have any scrolling (the page is smaller than the browser window). However, as soon as you introduce the same code on a page that has a vertical scrollbar, the scrollIntoView causes not only the scroll area to move, but also the entire form.
1
6828
by: VINAY | last post by:
Dear All, The subject line could be bit confusing. So let me explain in details, please have patience. I have developed an ActiveX Control(Combo Box Control) in VB6 for a touch screen application since the user had problems working with the small Combo Box Button and Scroll Box Scroll Button that appears in the Combo Box Control Shipped with VB. While going through questions in this group i learnt that one can change the size of the...
8
3253
by: Jack Addington | last post by:
I want to scroll through the alphabet in order to scroll some data to the closest name that starts with a letter. If the user hits the H button then it should scroll to the letter closest to H. If no one exists with H, then go to I, etc. If its near the end, say 'V', and the last person is a 'T' then it should work its way back up the alphabet. I was trying to loop as if the Char's were ints but I am having problems I have buttons...
2
1218
by: Rik Brooks | last post by:
My boss has put a couple of restraints on me that has me tearing out my hair. Here is my problem. On a particular asp page I need to use server side controls so that I do some fairly complex logic in C#. There is a background graphic that needs to stay in place and a big empty area where my result set is displayed. In other words, the page cries out for frames but my boss won't hear of that. No frames at all.
0
1465
by: Martin Eyles | last post by:
I want to make a pop-up window with a scroll-bar, which a user can select a value with, and send it back to server. this server will then send back a new page containing that value. Also, opening the window again, the scrollbar would still be in that position. To make this clearer, the sequence I am thinking of is this:- 1. user clicks "enter value" button in main window 2. new window with scroll bar opens 3. user moves scroll-bar to...
5
2987
by: Daniel | last post by:
Hi All, i have problem to scroll the page the the specific section of the page after click a command button. I have tried using <a name="f"> and use response.redirect("xxxx.aspx?#f"). Although it works but i dont wan to reload the page. I also used hyperlink to goto the "f" section. It works good without fire an event (which cause reload page) but, the problem, i wan to click on a command button and not the hyperlink.
0
1552
by: Eric | last post by:
When I use the scroll up and down button in my form it shows an empty form and some times it save blank record. Is it possible i will lock my form if any one use the scroll button of mouse my form will not scroll. Inside the subform will scroll but if the user is outside from the subform and it click on the scroll button the whole form is scroll with all empty values. I just want to fix that problem needs help Thanks in advance.
4
1296
by: W. Watson | last post by:
I have about a 1600 line Pythron program I'd like to make some simple mods to, but have really just a nodding acquaintance with Python and Tkinter. I know quite a few languages, including C++. Let's change that. I've not used anything but C in recent years, and C++ was in my bag before that along with a number of aged languages. The biggest change I want to make is the single simple screen titles, top and bottom. The top was easy, since...
5
10111
by: Lord Zoltar | last post by:
Hello, I'm trying to force a listView to scroll to some location when a certain button is clicked on. I've found that the SendMessage function seems to be the choice way of doing it. Here's what I've put in my button handler: //somewhere else in my code: private const int WM_VSCROLL = 277; // Vertical scroll .. ..
0
8233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8170
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8619
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8334
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6108
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2604
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.