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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:46:44+00:00 2026-06-17T02:46:44+00:00

I am having a bit of a problem getting JQuery-UI interactions working on a

  • 0

I am having a bit of a problem getting JQuery-UI interactions working on a page of mine. I haven’t used JQuery-UI before, so I started out by trying the sortable interaction with the hopes of making it drag-and-drop and sortable later on. However, I’ve been banging my head against the wall and been unable to even get the sortable working.

The content I am trying to sort is being loaded dynamically with ajax. Here is a representation of what the content looks like:

<ul id="category_list">
    <li class="category" data-category-id="17">Education</li>
    <li class="category" data-category-id="20">General Information</li>
    <li class="category" data-category-id="14">Music / Movies / Television</li>
    <li class="category" data-category-id="18">Navigation</li>
    <li class="category" data-category-id="19">Retailers</li>
    <li class="category" data-category-id="16">Social Media</li>
    <li class="category" data-category-id="15">Web Results</li>
</ul>

This JQuery function loads the data:

// load all the engines in a category
$('#container').on("click", ".buttonclass", function() {
    $.get("/categories", {
      id : $(this).attr('data-id')
      }, function(data) {
          var pane = $("#categories").data('jsp');
          pane.getContentPane().html(data);
          pane.reinitialise();
      });
});

(the pane-related stuff is because this is scrollable by a JScrollPane). I try adding code to this function above to make the list elements sortable, but nothing works. Some things I’ve tried are:

$('.category').sortable();
...
$('.category'.each(function(){$(this).sortable()};
...
$("#category_list").sortable();
...
$('.category').sortable('refresh');
...
$('.category'.each(function(){$(this).sortable('refresh')};
...
$("#category_list").sortable('refresh');

I tried adding the code to on click handler both inside the callback function (of the $.get) and after it with no luck.

Static data hard-coded in the page (inside the JscrollPane) has no problems sorting. Just the dynamic content is causing trouble.

Any help would be greatly appreciated.

  • 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-17T02:46:46+00:00Added an answer on June 17, 2026 at 2:46 am

    Figured out the problem and it was the JScrollPane. Although the JScrollpane has no problems with static data and sortable/draggable/droppable it seems to cause problems when dynamically populating it.

    Removed the JScrollPanes and all if fine using:

    $("#category_list").sortable();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a bit of a problem with getting JBoss working across networks. As
I'm having a problem getting SvnKit working on 64 bit Windows 7. I open
I'm trying ComponentOne and I'm having a problem with jQuery. I'm working en ASP.NET
I'm having a bit of a problem figuring out how to get the X/Y
I am having a bit of a problem, I am trying to get a
Having a bit of a problem getting my LINQ query to return the object
Ok so I'm having bit of a problem with my Hibernate mappings and getting
I'm having a problem getting more memory out of PHP. This is the error
Howdy, I'm having a bit of a problem getting my unit tests to pass.
I'm having a bit of a problem understanding the compile errors I'm getting 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.