Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8792141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:56:20+00:00 2026-06-13T22:56:20+00:00

In order to gather some statistics on how users interact with an web application,

  • 0

In order to gather some statistics on how users interact with an web application, I would like to know how they use a certain JQuery UI Slider. Specifically, I would like to know whether they used the mouse or the keyboard (the arrow keys) to manipulate the slider.

My code is as follows:

$test.slider({range: "min", step: 0.1, slide: updatePosition, stop: slideEnd, start: slideStart});

How would I detect, within my functions slideStart and slideEnd, whether the arrow keys were pressed or the mouse was used? Would I have to modify the plugin source? That’s what I would like to avoid.

Would adding another handler to $test for click/keypresses be the best bet?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:56:21+00:00Added an answer on June 13, 2026 at 10:56 pm

    I figured out a way that seems the cleanest. I just added:

    $test.keyup(slideKey);
    

    Where $test is my slider div. I had to use keyup() rather than keypress() to catch the arrow keys in Chrome.

    In the slideKey function, I just use the event object passed in.

    function slideKey(e)
    {
        console.log(e.keycode);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My web-app has this secret place only some people are allowed to use. When
I want to gather some statistics from my Android phone. When I start my
From what I can gather of how to use BGL in order to invoke
in order to recover data from server I use XMLHttpRequest and my code is
The order of execution of html/javascript , as far as I know , is
in order to avoid copy/paste, i can use a unique view for different actions,
In order to set some varaibles i need the information if a given file
Some developers are particular about how they format their codes, for some good reasons.
The web part lifecycle is described like this: On Page Load Constructor OnInit OnLoad
I'm trying to get Assetic to run within Symfony 2.0.11 in order to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.