PDA

View Full Version : ajax with drag and drop help/advice


dajohnson1s
04-12-2008, 08:44 AM
Hello, I would like to mention first that I my javascript skills are virtually non-exsistant, so if you would, please forgive any "beginner" questions.

I am currently developing a web page to replace a current section of a scheduling system. I am pulling employee names from the database, and making a some type of image map. My goal is to populate the employee names and make them draggable so I could place them on an image map to display what time of day the employee is schedule to work.

With my non-exsistant javascript skills, I am having some trouble implimenting my vision. I know this can be done, and I would like to make something similar to this:
yahoo! (http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html)

If possible I would love a tutorial on how to perform this task, also any advice on making this happen. One of the problems is that this is done in asp.net (I had been recommended to post here as well) There are ajax extensions, but I am really not sure what to use.

Thanks, and sorry this was a little long winded, I can provide more details if this is unclear.

Thanks

A1ien51
04-12-2008, 03:39 PM
If you want to do something like that, than have you tried to download their code? http://developer.yahoo.com/yui/dragdrop/

They should have sample files in the download.

Eric

dajohnson1s
04-12-2008, 06:03 PM
I was curious can the yahoo thing be done otherwise? I am a little concerned because what we are going to use is going to be "live", and I was a little worried about the licensing and whatever.

Thanks

wonko
04-12-2008, 09:57 PM
Check out these: http://www.dhtmlgoodies.com/index.html?page=dragDrop

A1ien51
04-13-2008, 05:49 AM
The linc. is not that bad if you read it.

You can also look into http://script.aculo.us/ or one of the JQuery ones.

Eric

Poet
04-13-2008, 08:19 AM
I've played around with the code posted by Wonko in the past, and the framework they provide people is very easy to modify and edit. I did experience a few issues with the content within the draggable boxes not appearing, but maybe it's not the best drag-drop framework out there. There are literally dozens to choose from, so just look around. A framework is definitely what you'll be wanting to use though since you're not skilled enough to develop your own just yet (no offense intended at all)