Solved

jQuery UI drag and drop in coldfusion - question

Posted on 2012-03-12
1
429 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 24

Accepted Solution

by:
dgrafx earned 500 total points
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now