1,105,423 Community Members

Drag and Drop with Swapping of Images

Member Avatar
shrutib
Newbie Poster
10 posts since Mar 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hello all,
My problem is there will be list of images where i need to swap the images to sort it like the way how i want to see.Say for example, image 1- position-1,
image 2 position 2 etc. When i drag image 1 position 1 to image 5 position 5,position 1 image 5 and position 5 image 1 should display(swapping).
Also please let me know how to handle this drag and drop with swapping for more than 100 images?
I want the solution in Jquery/Javascript/Ajax. Help it's urgent.

Using Rails 2.3.5, Ruby 1.8.7 MySQL

Thanks in advance

Member Avatar
stbuchok
Posting Shark
957 posts since May 2011
Reputation Points: 123 [?]
Q&As Helped to Solve: 142 [?]
Skill Endorsements: 2 [?]
 
0
 

Can you show what you have done so far?

Member Avatar
shrutib
Newbie Poster
10 posts since Mar 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks for the reply.Haven't started yet. I need to know how can i acheive that? I am fetching the list from database and trying to define the order of display of images as i wish to see. Or otherwise, if there is any other alternate method for acheiving this,please let me know. It should be able to handle more than 100 images also.

Member Avatar
stbuchok
Posting Shark
957 posts since May 2011
Reputation Points: 123 [?]
Q&As Helped to Solve: 142 [?]
Skill Endorsements: 2 [?]
 
0
 

http://jqueryui.com/sortable/

That should get you started.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article