<div>Hello Matteo,<br></div><div><br></div><div>Sorry I don't have time to test this solution before suggesting it.</div><div><br></div><div>Check out the Xerte help files.</div><div><br></div><div>I don't think that by default an image icon is sensitive to mouse events and thus will not trigger an onRelease event.</div>
<div><br></div><div>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.</div>
<div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><br><div class="gmail_quote">On 29 December 2011 07:45, pippo pluto <span dir="ltr"><<a href="mailto:matis25@yahoo.com">matis25@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div>
<span lang="en"><span>hi</span><br> <span>this is my</span> <span>problem:</span></span></div><div><br></div><div><span lang="en"><span>I have a small</span> <span>icon (</span><span>a</span> <span>jpg image, it is called 'logopdf1'</span><span>)</span> </span><span lang="en"><span>I would</span> <span>click on</span> <span>and download a</span> <span>simple PDF file (its name is comparative.pdf) :</span></span></div>
<div><br></div><div><span lang="en"><span>I</span> <span>did it this way:</span></span></div><div>1) <span lang="en"><span>I have</span> <span>an id</span> (logo) <span>associated with</span> <span>image</span></span><br>
</div><div><span lang="en"><span>2) I create an interection<br></span></span></div><div><span lang="en"><span>3) I create an event that I called Event1, icon : logo , eventname: onRelease<br></span></span></div><div><span lang="en"><span>4) I create a script : into the script I wrote: getURL('media/pdf/comparative.pdf',
'_blank');</span></span></div><div><br></div><div><span lang="en"><span>but doesn't work...</span></span><span lang="en"><span>what code</span> <span>should I write</span> <span>in the script</span><span>?</span></span></div>
<div><br></div><div><span lang="en"><span>thank's</span></span></div><div><span lang="en"><span>Matteo Pirola</span></span></div><div><span lang="en"><span>University of Ferrara</span></span></div><div><span lang="en"><span>Italy<br>
</span></span></div></div><br>
<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><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>