Jump to content

Recommended Posts

Currently, I'm trying to find information on how I could create a drag and drop script in php.

I'm aware that JavaScript would be the language that I should use, but I'm not exactly sure.

 

Ive tried "Scriptaculous", but that wasn't successful.

 

Can someone please point me in the right direction?

 

If you would like to talk to me on AIM, my SN is xwtfadamx.

Link to comment
https://forums.phpfreaks.com/topic/140076-php-drag-drop/
Share on other sites

It is straight javascript with PHP. What do you expect to do with this script?

 

http://www.walterzorn.com/dragdrop/commands_e.htm

 

That is a great script to use for Dragging and dropping.

 

Basically, I was going to use drag and drop for organizing friends.

Like a top friends section.

 

If that makes since....

So it has to be able to help put information into a database.

Link to comment
https://forums.phpfreaks.com/topic/140076-php-drag-drop/#findComment-732866
Share on other sites

It is straight javascript with PHP. What do you expect to do with this script?

 

http://www.walterzorn.com/dragdrop/commands_e.htm

 

That is a great script to use for Dragging and dropping.

 

Basically, I was going to use drag and drop for organizing friends.

Like a top friends section.

 

If that makes since....

So it has to be able to help put information into a database.

 

How good are you at Javascript and PHP? Really this should be pretty simple, you can either use AJAX to save the data when moved, or make a "Save" button and when clicked it saves the new organization.

 

I know that this code:

http://www.webreference.com/programming/javascript/mk/column2/

 

Would probably be more of the javascript code you are looking for. You just have to figure out how to post the new order to PHP. It really should not be too bad, but you may need to brush up on your javascript, but basically when the "save" button is pushed you send the current order to the php script. That or anytime a friend is changed you can use AJAX to update the DB automatically.

 

EDIT::

And really

http://www.google.com/search?hl=en&q=drag+and+drop+lists+php+javascript&btnG=Google+Search&aq=f&oq=

 

There are plenty of scripts doing this...

Link to comment
https://forums.phpfreaks.com/topic/140076-php-drag-drop/#findComment-732872
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.