<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Just to bump this issue again. Bubbling would make my piece extremely more simple. Any idea what's wrong?<br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Peter Huppertz &lt;<a href="mailto:peter.huppertz@baselgovernance.org">peter.huppertz@baselgovernance.org</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">20. Mai 2010 09:12:18 MESZ<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Xerte discussion list &lt;<a href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [Xerte] Get iconID of parent icon in Xerte3</b><br></span></div><br><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">That sounds like a fantastic idea, unfortunately I'm not sure where I got it wrong. This is what I did:<div><br></div><div>Canvas</div><div>--picture1</div><div>--picture2</div><div>--picture3</div><div>--Event Handler (rollOver/debug(event.currentTarget))</div><div><br></div><div>It works so far, that the event only dispatches when I roll over one of the three images. But the debug output is always Canvas. I would be perfect if it would be picture1, picture2 ... What's wrong?</div><div><br></div><div>Thanks,</div><div><br></div><div>Peter</div><div><br><div><div>Am 19.05.2010 um 21:42 schrieb Julian Tenney:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="WORD-WRAP: break-word">
<div id="idOWAReplyText37089" dir="ltr">
<div dir="ltr"><font face="Arial" color="#000000" size="2">in the event handler</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">debug(event.target);</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">thats the broadcasting icon, which is what you want.</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">In the examples is there one for bubbling events? They are very cool. If you have a page of components, then you can put an event handler on the page itself for, say, rollOver, and then in the page's rollOver event handler, you can get event.currentTarget for the actual icon being rolled over (I think rollOver bubbles). That can lead to seriously effiecient code compared to having to set up event handlers on each icon. The help will tell you which events bubble,</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">J</font></div></div>
<div dir="ltr"><br>
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> on behalf of Peter Huppertz<br><b>Sent:</b> Wed 19/05/2010 19:03<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> Re: [Xerte] Get iconID of parent icon in Xerte3<br></font><br></div>
<div>I need to get the parent iconID of a EventHandler icon, but the EventHandler icon does not seem to have the iconID property, or is it just missing in the built, I use? 
<div><br></div>
<div>Peter</div>
<div><br>
<div>
<div>Am 19.05.2010 um 17:11 schrieb Julian Tenney:</div><br class="Apple-interchange-newline">
<blockquote type="cite">
<div>
<div id="idOWAReplyText42074" dir="ltr">
<div dir="ltr"><font face="Arial" color="#000000" size="2">there is no icon.</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">Give an icon the property iconID, say myIconID</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">then myIconID.parent is the way to go,</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">debug(myIconID) to check you've got the right fella in there,</font></div>
<div dir="ltr"><font face="Arial" size="2"></font>&nbsp;</div>
<div dir="ltr"><font face="Arial" size="2">J</font></div></div>
<div dir="ltr"><br>
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> on behalf of Peter Huppertz<br><b>Sent:</b> Wed 19/05/2010 14:51<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Get iconID of parent icon in Xerte3<br></font><br></div>
<div><p><font size="2">Can anyone tell me the command to get hold of the iconID of a parent icon in Xerte3? icon.parent or parent does not seem to do the trick ...<br><br>Thanks,<br><br>Peter<br><br><br>==================================<br>Peter Huppertz<br>E-learning and IT Specialist<br>International Centre for Asset Recovery<br>Basel Institute on Governance<br>Phone: +41 61 205 55 18<br>Fax: +41 61 267 55 19<br><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br></font></p></div></div>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br></blockquote></div><br></div></div></div>
_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br></blockquote></div><br></div></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>==================================</div><div>Peter Huppertz</div><div>E-learning and IT Specialist</div><div>International Centre for Asset Recovery</div><div>Basel Institute on Governance</div><div>Phone: +41 61 205 55 18</div><div>Fax: +41 61 267 55 19</div></span>
</div>
<br></body></html>