scrollbar
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=16156
Printed Date: 30 March 2026 at 1:17am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: scrollbar
Posted By: gayathri
Subject: scrollbar
Date Posted: 09 August 2005 at 5:30am
|
how can i set scroll bar to selection list.i have given onchange=page.submit(); so when i press down arrow key it selects the next item in list. i wan to display all items. can u pls help me.how can i solve this.
|
Replies:
Posted By: theSCIENTIST
Date Posted: 10 August 2005 at 1:52am
WTH are you talking about? I dind't understant anything of your query! Please re-phrase.
By the way, please don't use this [onchange=page.submit();] it submits a form on selection change without having a submit button, so those with scriting disabled can't use this kinds of things, always use a button to submit your forms.
------------- :: http://www.mylittlehost.com/ - www.mylittlehost.com
|
Posted By: dpyers
Date Posted: 10 August 2005 at 2:24am
I think he wants to display an input dropdown with all the elements
displayed at once rather than having the scroll bar. Without the
elements displayed at once, using the arrow keys to navigate the
dropdown is firing his onchange event.
try using the size attribute to set the number of lines in the select
<select size="5" name="dd1">
<option value="a">a</option>
<option value="b">b</option>
|
The example will display 2 options in a 5 line select.
IE won't have scrollbars, FF will have scrollbars but they'll be non-functional, it will also display the 5 lines like ie.
Like theScientist said though, put the button in too. No sense limiting
the functionlity of the page to only one group of surfers.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: theSCIENTIST
Date Posted: 11 August 2005 at 5:51am
Yeah, if he wants to extend the view of how many items show on the drop down list, the size par should do it, however if he's getting the list dinamicaly, then he has to count first and to set the size also dinamicaly.
Yes, please put atleast a 1x1 pixel img to submit a form, gives us a change here.
------------- :: http://www.mylittlehost.com/ - www.mylittlehost.com
|
|