2 Replies Latest reply on May 12, 2014 2:35 PM by infocorsi@xmt.it

    Problem with .load() method

    infocorsi@xmt.it Level 1

      Hi There

      I have an issue using the jquery .load().

      In my composition, in compositionReady, I use .load() to load an external html file into an ordinary Edge element - no problem here.

       

      The loaded HTML contains a div  id="spot" - I would like to clik on it and fire an Edge comand, such as 'play the symbol', or 'move that element'..

      the problem is: how can I address that div?

       

      tried variuos solutions :

      $("spot")

      sym.getComposition().getStage().$("spot")

      ... and many mix...

       

      I was originally thinking to write something like

      $("spot").click(function() {

           alert( "spot clicked." );

           })


      Thanks for helping me!