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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:40:53+00:00 2026-06-15T03:40:53+00:00

I’m using Media Box Advanced as a layover tool, which is very powerful and

  • 0

I’m using Media Box Advanced as a layover tool, which is very powerful and convenient because it accepts any media, and takes any list and automatically reads the number of <li> and their order.

I have introduced a draggable functionality to these lists, reordering them using jquery .draggable. They can also be dragged from one UL to another. However, when I then click on these to pop up the lightbox, the order has not changed. My question is the following:

1) How do I get the page to read these changes in real time and reorder the lightbox?

2) Is there a way to make these changes permanent?

3) The lightbox categorizes galleries by the <a> tags within the <li> (<a rel="lightbox[category]"). Is there a way to change the setting of the <li> when they are dragged from one <ul> to another? Like if they are dragged from UL1 to UL2, how do I update the <a rel> tag to reflect that?

Here is the web page: http://www.senseculture.com/timeline_new.html

Here is the draggable code I’m using:

<script>
  $(function() {
        $( "#sortable1, #sortable2" ).sortable({
            connectWith: ".timeline_content"
        }).disableSelection();
    });
</script>

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-15T03:40:54+00:00Added an answer on June 15, 2026 at 3:40 am

    1) This was solved by reading through the .js of the lightbox (mediaboxadvanced) and finding the function that loads the UL’s into a lightbox. Each time the lists are ordered, the lightbox is recalculated:

    $( "#sortable1, #sortable2, #my_timeline" ).sortable({
    update: function(event, ui) {
        Mediabox.scanPage();
    }
    });
    

    2) This can be done with PHP: jQuery Connected Sortable Lists, Save Order to MySQL

    3) Same as 1), on “receive”, make each lightbox list attach a “rel” argument to each “a” tag. To prevent it from changing the “rel” tag of non sortable list items, I’ve added a function to make sure their “rel” tags remain empty.

    $( "#sortable1, #sortable2, #my_timeline" ).sortable({
    update: function(event, ui) {
        Mediabox.scanPage();
    }
    receive: function(event, ui) {
    
            $(".timeline_content").each(function(i) {
            $(this).find("a").attr("rel", "lightbox[set" + (i+1) + "]");
            });
            $(".non_sortable").each(function(i) {
            $(this).find("a").attr("rel", ""); 
            });
    }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
I am reading a book about Javascript and jQuery and using one of the
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I would like to run a str_replace or preg_replace which looks for certain words
We're building an app, our first using Rails 3, and we're having to build

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.