Hi I didn''t find any tutorial or sample where you can make something like this http://piwik.org/demo/index.php?module=Home&action=index&idSite=1&period=day&date=yesterday you can drag and change div positions. is it possible with this library? can anybody tell me please how to do this? i have a number of charts and i want let the user rearrange their positions as done on this link. thank you very much! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
It is possible, but there''s no "out of the box" solution. Creating the draggables is easy enough, but you would have your own listener to figure out when to rearrange the other boxes, and where to draw the outline border for the droppable region. On Jun 30, 1:27 am, phparion <haroon.ah...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi > > I didn''t find any tutorial or sample where you can make something like > this > > http://piwik.org/demo/index.php?module=Home&action=index&idSite=1&per... > > you can drag and change div positions. is it possible with this > library? can anybody tell me please how to do this? i have a number of > charts and i want let the user rearrange their positions as done on > this link. > > thank you very much!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Walter Lee Davis
2008-Jun-30 16:26 UTC
Re: draggable divs which change position with each other
Isn''t there a portal toolkit over at Scripteka? I could swear I have seen this, ready to use and everything. Walter On Jun 30, 2008, at 9:19 AM, Diodeus wrote:> > It is possible, but there''s no "out of the box" solution.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Matt Foster
2008-Jun-30 20:23 UTC
Re: draggable divs which change position with each other
Hmm, Sortable could get 90% of this done, drawing the pseudo box would be the only special change, and I know its been done, can''t remember now who... http://github.com/madrobby/scriptaculous/wikis/sortable -- Matt Foster Ajax Engineer Nth Penguin, LLC http://www.nthpenguin.com On Jun 30, 12:26 pm, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> Isn''t there a portal toolkit over at Scripteka? I could swear I have > seen this, ready to use and everything. > > Walter > > On Jun 30, 2008, at 9:19 AM, Diodeus wrote: > > > > > It is possible, but there''s no "out of the box" solution.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
In fact, it has been done here http://github.com/madrobby/scriptaculous/wikis/puzzle-demo i checked the source code and included javascript file is builder.js where we get different files in source folder. Anyway, I copied the html of images to a page on my server and included effect.js,drag.js and scriptiolus.js files and it worked on my server i,e the puzzle game worked on my server as it is working in the demo. Now the problem is that I have flash charts, i can display them in DIVs and not as images. I did this to change the function call of demo game, <script type="text/javascript"> (function(){ var p = $(''flashcharts''); Sortable.create(''flashcharts'', { tag:''div'',overlap:''horizontal'',constraint: false }); })(); </script> but it didn''t work for me. I cannot drag divs which have flash charts in each of them. Has anybody got any idea how to deal with this? On Jul 1, 1:23 am, Matt Foster <mattfoste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hmm, Sortable could get 90% of this done, drawing the pseudo box would > be the only special change, and I know its been done, can''t remember > now who... > > http://github.com/madrobby/scriptaculous/wikis/sortable > > -- > Matt Foster > Ajax Engineer > Nth Penguin, LLChttp://www.nthpenguin.com > > On Jun 30, 12:26 pm, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: > > > Isn''t there a portal toolkit over at Scripteka? I could swear I have > > seen this, ready to use and everything. > > > Walter > > > On Jun 30, 2008, at 9:19 AM, Diodeus wrote: > > > > It is possible, but there''s no "out of the box" solution.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Ok, it has started working for me. thank you all for your support and this library rocks :) On Jul 1, 1:23 am, Matt Foster <mattfoste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hmm, Sortable could get 90% of this done, drawing the pseudo box would > be the only special change, and I know its been done, can''t remember > now who... > > http://github.com/madrobby/scriptaculous/wikis/sortable > > -- > Matt Foster > Ajax Engineer > Nth Penguin, LLChttp://www.nthpenguin.com > > On Jun 30, 12:26 pm, Walter Lee Davis <wa...-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: > > > Isn''t there a portal toolkit over at Scripteka? I could swear I have > > seen this, ready to use and everything. > > > Walter > > > On Jun 30, 2008, at 9:19 AM, Diodeus wrote: > > > > It is possible, but there''s no "out of the box" solution.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---