Solved

jQuery UI drag and drop in coldfusion - question

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
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…
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…

821 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