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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duncan Austin
Sent: Friday, February 17, 2006 9:18 AM
To: rails-spinoffs@lists.rubyonrails.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

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@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to