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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:33:26+00:00 2026-05-28T15:33:26+00:00

Does anyone know of a way to implement a drag and drop feature with

  • 0

Does anyone know of a way to implement a drag and drop feature with ColdFusion’s CFLAYOUT? I’ve tried creating a cflayout with tabs and jQuery’s sortable plugin, but can’t get it to work. Here’s the code I’m working with:

<script type="text/javascript" src="/scripts/jQuery_MenuDragDrop.js"></script>

<script type="text/javascript">
    $(document).ready(function() {
        $("ul.x-tab-strip").sortable({
            placeHolder: "ul.x-tab-strip",
            connectWith: "ul.x-tab-strip",
            update: function() {
                alert("test");
            }
        });
    });
</script>

<cfset variables.Tabs   = ["test 1", "test 2", "test 3"]>
<cfset variables.TabIDs = [1, 2, 3]>

<cflayout type="tab" name="ProjectTabs" style="width:975px;">
    <cfloop index="i" from="1" to="#ArrayLen(variables.Tabs)#">
        <cflayoutarea name="ProjectTab#variables.TabIDs[i]#" title="#variables.Tabs[i]#"></cflayoutarea>
    </cfloop>
</cflayout>

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-05-28T15:33:27+00:00Added an answer on May 28, 2026 at 3:33 pm

    Give this a try:

    <script type="text/javascript"> 
        window.onload = function(){ 
            setupSortable(); 
        }; 
    
        setupSortable = function(){ 
            $(".x-tab-strip").sortable({ 
                update: function() { alert("test"); } 
            }); 
        } 
    </script>
    

    One thing i found about jQuery is it helps to try to dump what you think your selecting and work from there. I dropped a console.log($('ul.x-tab-strip')); at the top of the document.ready it didn’t print anything – but setting it up in the timeout it dumped the expected target. You may have to fiddle with the timeout a bit too.

    Honestly I would consider looking into alternatives to cflayout for tabs if you can. CF generated code is messy and can be hard to work with at times. I’m partial to jQuery tools: http://flowplayer.org/tools/tabs/index.html

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

Sidebar

Related Questions

does anyone know is there a way to implement Windows Live ID authentication into
Does anyone know is there a way to implement Windows Live ID authentication into
does anyone know of a native way to implement multiple element select paired with
Does anyone know what the best way to implement a list/grid togglable view in
Does anyone know of a creative way to serialize objects that implement IDictionary? ...without
Does anyone know of a way to implement push notifications using appcelerator for an
Does anyone know a way to auto-generate database tables for a given class? I'm
Does anyone know a way to find out programatically which physical disk holds a
does anyone know a way to call a generic method of a base class
Does anyone know a way to open up an instance of the operating system

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.