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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:39:19+00:00 2026-05-17T21:39:19+00:00

I a problem that has been driving me nuts for awhile now. Here is

  • 0

I a problem that has been driving me nuts for awhile now. Here is the set up:

I have a draggable list that is being used for user navigation. I would like to save how the user orders the list to a database so it is the same the next time they load the page. I am using (or trying to) use an ajax call to save the order.

Here is my jQuery:

$(document).ready(function() {    
$( "#sortable" ).sortable({
            revert: true,
            stop: function(event, ui) {
                var aResult = $('#sortable').sortable('toArray');    
                postChanges( aResult );        
            }
        });           

});

function postChanges( result ) {

$.ajax({
    type: "POST",
    url: "model/customNav.cfm",
    data: {order: result },             
    timeout: "5000" 

});
}

On the cfm page “CustomNav” I have a simple cfdump to dump the form variable out to make sure the data is getting sent correctly:
(I tried to post an image but I am too new, I will try and “draw” the results from the cfdump)


|struct |
|Fieldnames| ORDER[] |
|ORDER[] | 3,2,1 |

The problem is, how do I access the order data? I figured because it was dumping the form structure, I would use dot notation to gain access to the order (i.e. form.order). That does not work. When I try and dump form.order I get an error saying the variable order is not found inside form.

I suspect it has to do with how I am sending the data to the coldfusion page, however I am not sure what I am doing wrong. So my question is, if I am sending the data correctly to the coldfusion page, how do I access it? If I am sending the data incorrectly, where did I go wrong?

Thanks much!

  • 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-17T21:39:20+00:00Added an answer on May 17, 2026 at 9:39 pm

    You could also try just accessing form[“order[]”]

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

Sidebar

Related Questions

I'm having a strange problem here... I have an ASP.NET 3.5 application that has
This has been a problem that I haven't been able to figure out for
This is my problem. I have a program that has to run in a
This has been driving me insane all day and I think I have the
The problem that I am having has to do with the need to keep
Problem (simplified to make things clearer): 1. there is one statically-linked static.lib that has
I'm trying to create a form that has an expandable widget. The problem is
For some reason one installation of Moodle 1.9.3+ has a problem that file.php returns
Problem: Customer X has requested that pages using XML DataBinding and Databound tables in
Has anyone else run into this problem before? I've got a method that calls

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.