Hi all,

I created the following class with prototype

-----------------------------------------------------------------------------------------------------------------------------------

var gestioneFormazione = Class.create ({

        initialize: function(modulo, formazioneDrop){

                ...

                for (var i = 0; i < formazioneDrop.length; i++){
                  ....

                  this.makeDroppable(idDiv, class);
                }

        },

        makeDroppable: function(elem, class){

                Droppables.add(elem, {accept: class,
                                                            onDrop:
function(dragged, dropped) {
 
this.aggiungiGiocatore();

                                                            }
                                                         }
                );

        },

        aggiungiGiocatore: function(eDrag, eDrop){

            .....
        },

});

-----------------------------------------------------------------------------------------------------------------------------------

Can you tell me why I can not to call the method
"this.aggiungiGiocatore"
(" this.aggiungiGiocatore is not a function") only inside "onDrop"?

Many thanks in advance...and sorry for my english ;)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to