Hi All, I''m using scriptaculous for the first time. I''m creating a CMS where the user can simply drag menu items to change the order. This is all simple enough. My problem comes with nested menus. The sortables are fine within their own menu but not across other new menus. The reason for this is that I''m using AJAX and only create a sub menu when it''s parent is clicked on so I can''t list all the containments up front for each list. I need to be able to add new sub menus to the containment of previous lists. Any one have any idea how to do this? I see there''s a Droppable.add, but I can''t see how to make this work for my sortable containment ... Any help much appreciated Regards Duncan _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it''s FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi Duncan, Welcome to the list. My very first thought in this matter is that you may possibly be using AJAX where it''s not warranted. Is there a real benefit in not just creating the whole menu structure up front? Are you sending a request to the server every single time someone tried to open up a sub-menu? I would definitely argue here that you should look seriously at how and why you are using AJAX. ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Duncan Austin Sent: Friday, February 17, 2006 9:18 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] Add new lists to existing sortables container Hi All, I''m using scriptaculous for the first time. I''m creating a CMS where the user can simply drag menu items to change the order. This is all simple enough. My problem comes with nested menus. The sortables are fine within their own menu but not across other new menus. The reason for this is that I''m using AJAX and only create a sub menu when it''s parent is clicked on so I can''t list all the containments up front for each list. I need to be able to add new sub menus to the containment of previous lists. Any one have any idea how to do this? I see there''s a Droppable.add, but I can''t see how to make this work for my sortable containment ... Any help much appreciated Regards Duncan ________________________________ Express yourself instantly with MSN Messenger! MSN Messenger <http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/> The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi Ryan, You're right, the entire menu should generally be loaded upfront, but for the CMS I need to be able to create a new sub menu if the admin wants one, which means that there will be a new list that wasn't there when the page loaded. I could of course reload the page but I want it to be as seamless as possible. There must be some way to reference/set the containment of an existing list...? Subject: RE: [Rails-spinoffs] Add new lists to existing sortables containerDate: Fri, 17 Feb 2006 09:20:36 -0600From: Ryan.Gahl@camtronics.comTo: rails-spinoffs@lists.rubyonrails.org Hi Duncan, Welcome to the list. My very first thought in this matter is that you may possibly be using AJAX where it’s not warranted. Is there a real benefit in not just creating the whole menu structure up front? Are you sending a request to the server every single time someone tried to open up a sub-menu? I would definitely argue here that you should look seriously at how and why you are using AJAX. From: rails-spinoffs-bounces@lists.rubyonrails.org [mailto:rails-spinoffs-bounces@lists.rubyonrails.org] On Behalf Of Duncan AustinSent: Friday, February 17, 2006 9:18 AMTo: rails-spinoffs@lists.rubyonrails.orgSubject: [Rails-spinoffs] Add new lists to existing sortables container Hi All, I'm using scriptaculous for the first time. I'm creating a CMS where the user can simply drag menu items to change the order. This is all simple enough. My problem comes with nested menus. The sortables are fine within their own menu but not across other new menus. The reason for this is that I'm using AJAX and only create a sub menu when it's parent is clicked on so I can't list all the containments up front for each list. I need to be able to add new sub menus to the containment of previous lists. Any one have any idea how to do this? I see there's a Droppable.add, but I can't see how to make this work for my sortable containment ... Any help much appreciated Regards Duncan Express yourself instantly with MSN Messenger! MSN Messenger The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs