![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hey everybody i have a dropdown list opening a window, ie SELECT onchange=openwindow().. OPTION value=.... ..choice1.. ..choice2.. when clicking on an choice if i clear this window, and click again on the same choice, nothing happens i must click another choice, and then come back on the first, which runs any medicine to allow a 2nd click on the same choice ? |
#3
| |||
| |||
|
|
You could deselect the option select onchange="openwindow(); this.selectedIndex = -1;" that way the user has to select the option again and the browsers recognizes a change that triggers onchange. |
#4
| |||
| |||
|
| Bernard Philip wrote: hey everybody i have a dropdown list opening a window, ie SELECT onchange=openwindow().. OPTION value=.... ..choice1.. ..choice2.. when clicking on an choice if i clear this window, and click again on the same choice, nothing happens i must click another choice, and then come back on the first, which runs any medicine to allow a 2nd click on the same choice ? You could deselect the option select onchange="openwindow(); this.selectedIndex = -1;" that way the user has to select the option again and the browsers recognizes a change that triggers onchange. thnx a lot for your quick answer, Martin, |
#5
| |||
| |||
|
|
Martin Honnen <Martin.Honnen (AT) t-online (DOT) de> writes: You could deselect the option select onchange="openwindow(); this.selectedIndex = -1;" that way the user has to select the option again and the browsers recognizes a change that triggers onchange. And people navigating with a keyboard will be completely lost, not just highly annoyed as by the original solution. Don't overuse the onchange event on selectboxes, some people will have to go through several choises before they reach the one they want. when using mouse only, the solution proposed by Martin seems ok for me |
#6
| |||
| |||
|
|
On 04 Aug 2003 15:31:45 +0200, Lasse Reichstein Nielsen lrn (AT) hotpop (DOT) com> wrote: Martin Honnen <Martin.Honnen (AT) t-online (DOT) de> writes: You could deselect the option select onchange="openwindow(); this.selectedIndex = -1;" that way the user has to select the option again and the browsers recognizes a change that triggers onchange. And people navigating with a keyboard will be completely lost, not just highly annoyed as by the original solution. Don't overuse the onchange event on selectboxes, some people will have to go through several choises before they reach the one they want. when using mouse only, the solution proposed by Martin seems ok for me why do you use keyboard ? quicker ? mouse broken ? |
|
regards B. |
#7
| |||
| |||
|
|
when using mouse only, the solution proposed by Martin seems ok for me why do you use keyboard ? quicker ? mouse broken ? regards |
#8
| |||
| |||
|
|
when using mouse only, the solution proposed by Martin seems ok for me why do you use keyboard ? quicker ? mouse broken ? regards I don't, but there are people who do. Some because they like it better, others because they have a physical condition that prevents them from using a mouse. |
![]() |
| Thread Tools | |
| Display Modes | |
| |