View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
04442Bug reportsOtherpublic2010-09-28 15:57
Reporterjdalegonzalez Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.87+ 
Fixed in Version1.90+ 
Summary04442: LimeSurvey sliders don't support keyboard input
Description

Because the LimeSurvey code (qanda.php) puts the slider handle in as a div, jquery's support for keyboard control of the slider doesn't work. (jquery puts the handle in as an "a"). It appears that Limesurvey is putting in the handle itself (as opposed to having jquery add the handle to the dom) so that it can update the position of the callout when the value on the slider is set initially:

lime-slider.js around line 63
$('#slider-callout-'+basename).css('left', $('#slider-handle-'+basename).css('left')).text(slider_prefix + thevalue + slider_suffix);

Changing that line to something similar to the one below will allow jquery to put the handle in, thereby enabling arrow key support for the slider.

$('#slider-callout-'+basename).css('left', $('.ui-slider-handle:first').css('left')).text(slider_prefix + thevalue + slider_suffix);

qanda.php would also have to change. Removing line 4237 does the trick.

Steps To Reproduce

1) Create a survey with a multi-int and set it to display as a slider
2) Click on the slider handle and move it (to set focus)
3) Attempt to use the arrow keys.
4) Make the changes recommended above
5) Notice that the arrow keys work.

Additional Information

8505 is the build number for qanda.php. line-slider.js doesn't have a build number in it, so I don't know what build it is.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)8505
I will donate to the project if issue is resolved
Browserall
Database type & versionall
Server OS (if known)all
Webserver software & version (if known)all
PHP Versionall

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2010-07-13 03:02

updater   ~12408

Evan, can you take a look and check the suggested fix with different templates?

c_schmitz

c_schmitz

2010-09-11 23:58

administrator   ~12834

Thank you!

Issue History

Date Modified Username Field Change
2010-06-23 19:22 jdalegonzalez New Issue
2010-06-23 19:22 jdalegonzalez Status new => assigned
2010-06-23 19:22 jdalegonzalez Assigned To => Evan
2010-07-13 03:02 Mazi Note Added: 12408
2010-09-11 23:57 c_schmitz Assigned To Evan => c_schmitz
2010-09-11 23:58 c_schmitz Note Added: 12834
2010-09-11 23:58 c_schmitz Status assigned => resolved
2010-09-11 23:58 c_schmitz Fixed in Version => 1.90+
2010-09-11 23:58 c_schmitz Resolution open => fixed
2010-09-28 15:57 c_schmitz Status resolved => closed
2011-03-08 14:52 c_schmitz Category Accessibility => (No Category)