Solved

jQuery UI drag and drop in coldfusion - question

Posted on 2012-03-12
1
457 Views
Last Modified: 2012-03-20
Hi Experts,

I'm trying to implement a coldfusion page with jQuery UI drag and drop features. I have a basic CF page that has 3 different containers - High School, Middle School and Elementary School. A query returns a resultset that populates individual divs with the names of the schools.

The user then matches up the individual school names to the school types. Once the matching is complete, I need to save the results to a DB. Attached is some code that I have but does not work.
DragnDropCF.docx
0
Comment
Question by:roger_v
1 Comment
 
LVL 25

Accepted Solution

by:
dgrafx earned 500 total points
ID: 37719779
To start it looks like the problem is that you don't have a draggable element.
You are saying that the element with an ID of "draggable" is draggable - BUT you don't have an element with that ID.
Keep in mind that an elements ID needs to be unique so you would only be able to set one element per page if using ID.
You need to give your element a class of draggable AND change your css & js FROM #draggable TO .draggable.

Try that ...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question