Friday, June 1, 2012

Django session and Dojo dnd.

I have a Dojo drag-and-drop and hope to store the dropped items and their information in a Django session. Using the example below, how do I pass "detail" in this code to a view so that the dropped info can be stored in a session?

Thank you!


        var source1 = new dojo.dnd.Source("itemListNode");
        var source2 = new dojo.dnd.Target("selectedListNode");

        dojo.connect( source1, "onDndDrop",
                              function(source, nodes, copy, target){
                                            for( i=0; i < nodes.length; i++){
                                                          item = this.getItem(nodes[i].id);
                                                          detail = item.data;
                                                          .....................................
                                                          .....................................
                                            }
                               }
        )

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ibNk43vQ0PkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment