Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

Re: Accessing into element of a child symbol with array

$
0
0

Now more difficult (for me).

 

I need a code for every xef element of child symbols created dynamically:

elements.jpg

But this code must be different for every instance of symbol, for example when click on xef <div> that show name of chef or when click on xef <div> show dates element.

 

I don't know how to access to a dates <div> element, if I try:

sXef.$("xef").click(

     function onClickXef(evt){

         dates.show();

});

then:

Uncaught ReferenceError: dates is not defined index_edgeActions.js:123

     onClickXef

     x.event.dispatch

     y.handle

 

If I try something stupid like:

sXef.$("xef").click(

     function onClickXef(evt){

          this.parent().dates.show();

});

then:

Uncaught TypeError: undefined is not a function

 

And for the names of the chefs do not even know where to start, they are in array of objects (fXefs[5].nom for example). Can I to construct a string with the function for to assign to event or something?


Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>