<html><head></head><body 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> </div>
<div dir="ltr"><font face="Arial" size="2">debug(event.target);</font></div>
<div dir="ltr"><font face="Arial" size="2"></font> </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> </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> </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> </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> </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> </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> </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>http://lists.nottingham.ac.uk/mailman/listinfo/xerte<br></blockquote></div><br></div></body></html>