<div>The ID is used as the unique identifier of an icon, so once you set the icon property of an icon you can refer directly to it by using its ID. That is except for icons that are normally the children of an interaction icon i.e. the sort of icons you see listed when you right click on an interaction icon in desktop Xerte e.g. button, hotspot etc. These use the rs property to identify themselves and not the id property. </div>
<div><br></div><div>Julian will know the why's and wherefore's of this.</div><div><br></div><div>You can read about it in the "interactions overview" section of the Xerte help file.</div><div><br></div><div>
Kind regards</div><div><br></div><div>Johnathan</div><div><br></div><div>You</div><br><div class="gmail_quote">On 29 December 2011 19:26, KnowledgeWare <span dir="ltr"><<a href="mailto:knowledgeware@kccsoft.com">knowledgeware@kccsoft.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-CA" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Johnathan – question if you don’t mind – what’s the difference between the ‘rs’ and ‘id’ properties? What’s the appropriate use of each? Where can I learn more about these?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">RonM2</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> Thursday, December 29, 2011 3:51 AM<br><b>To:</b> pippo pluto; Xerte discussion list<br><b>Subject:</b> [Xerte] Re: download file pdf</span></p><div><div class="h5"><p class="MsoNormal"> </p><div><p class="MsoNormal">
Hello Matteo,</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Sorry I don't have time to test this solution before suggesting it.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">
Check out the Xerte help files.</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">I don't think that by default an image icon is sensitive to mouse events and thus will not trigger an onRelease event.</p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">However you can add a hotObject icon to an interaction and then add an image icon as a child of the hotObject. This will allow mouse events to be detected by the image. I am not sure if the event will be triggered by the hot object or the image. If it is the hot object icon then you may need to use the rs property rather than the id property to identify the hotObject icon when specifying what object sends the event.</p>
</div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Kind regards</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Johnathan</p></div><p class="MsoNormal"> </p><div><p class="MsoNormal">
On 29 December 2011 07:45, pippo pluto <<a href="mailto:matis25@yahoo.com" target="_blank">matis25@yahoo.com</a>> wrote:</p><div><div><div><p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">hi<br>
this is my problem:</span></p></div><div><p class="MsoNormal" style="background:white"><span style="color:black"> </span></p></div><div><p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">I have a small icon (a jpg image, it is called 'logopdf1') I would click on and download a simple PDF file (its name is comparative.pdf) :</span></p>
</div><div><p class="MsoNormal" style="background:white"><span style="color:black"> </span></p></div><div><p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">I did it this way:</span></p></div>
<div><p class="MsoNormal" style="background:white"><span style="color:black">1) </span><span lang="EN" style="color:black">I have an id (logo) associated with image</span></p></div><div><p class="MsoNormal" style="background:white">
<span lang="EN" style="color:black">2) I create an interection</span></p></div><div><p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">3) I create an event that I called Event1,  icon : logo , eventname: onRelease</span></p>
</div><div><p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">4) I create a script : into the script I wrote:  getURL('media/pdf/comparative.pdf', '_blank');</span></p></div>
<div><p class="MsoNormal" style="background:white"><span style="color:black"> </span></p></div><div><p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">but doesn't work...what code should I write in the script?</span></p>
</div><div><p class="MsoNormal" style="background:white"><span style="color:black"> </span></p></div><div><p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">thank's</span></p></div><div>
<p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">Matteo Pirola</span></p></div><div><p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">University of Ferrara</span></p>
</div><div><p class="MsoNormal" style="background:white"><span lang="EN" style="color:black">Italy</span></p></div></div><p class="MsoNormal"> </p><p>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. </p>
<p>This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. </p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br><br>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br><br></p></div><p class="MsoNormal"> </p></div></div></div></div><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" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>

<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>