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 9175863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:59:08+00:00 2026-06-17T16:59:08+00:00

I am trying to set up a JQuery Mobile 1.3 site that uses a

  • 0

I am trying to set up a JQuery Mobile 1.3 site that uses a panel and a slider.

Problem is, that using the slider triggers the panel, which opens on a “swiperight” event, as I am moving the slider to the right. The slider will be for pagination, the panel for a menu.

Code here:

http://jsfiddle.net/kMARn/1/

Move the slider to the right and the panel will open.

I have tried using the .not() selector for the panel to not react on the slider:

$(document).not("#slider").on("swiperight", function(event, ui) {
    $("#myPanel").panel("open");
});

But it won’t work, the panel opens when i move the slider to the right. Tried a bunch of variants too, but I’m lost…

Any ideas?

Thanks!

  • 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-17T16:59:09+00:00Added an answer on June 17, 2026 at 4:59 pm

    The following solution is more a workaround. It should be relatively reliable though.

    $(document).ready( function () {
    
        var menu_available = true;
    
        $(document).on("swiperight", function(event, ui) {
            if (menu_available) $("#myPanel").panel("open");
        });
    
        $("#slider").on("slidestop", function( event, ui ) { 
            menu_available = false;
            window.setTimeout(function() {menu_available= true;},250);
        }); 
    });
    

    The variable menu_available is false for a 250 milliseconds right after the slide stops. The window.setTimeout block will reset the variable so that the menu is available again.

    This is a stupid workaround, but jQuerys function event.stopEventPropagation(), which IMHO would be the correct way to go, didn’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to include jQuery Mobile in a project that uses RequireJS for AMD,
I'm trying to set up an image slider using jquery bootstrap carousel. It seems
Using jQuery I am trying to set focus for (CSS purposes) to a particular
Is it possible to set for(AssociatedControlID) attribute using jQuery? I am trying something like
I have a jQuery Mobile application that I'm trying to run on a Galaxy
I'm using Jquery Mobile pagination plugin and trying to work it into a plugin
Hi I am trying to set href using Jquery inside click event of RadioButtonList
Trying to set a select dropdown with a slider. You move the jquery ui
I am trying to set the charSet in a jquery call the site I
I'm trying to set the aria-autocomplete attribute on an element using jQuery. However when

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.