[Xerte] Re: download file pdf

Kemp Johnathan johnathan.kemp at ntlworld.com
Thu Dec 29 11:51:19 GMT 2011


Hello Matteo,

Sorry I don't have time to test this solution before suggesting it.

Check out the Xerte help files.

I don't think that by default an image icon is sensitive to mouse events
and thus will not trigger an onRelease event.

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.

Kind regards

Johnathan

On 29 December 2011 07:45, pippo pluto <matis25 at yahoo.com> wrote:

> hi
> this is my problem:
>
> 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) :
>
> I did it this way:
> 1) I have an id (logo) associated with image
> 2) I create an interection
> 3) I create an event that I called Event1,  icon : logo , eventname:
> onRelease
> 4) I create a script : into the script I wrote:
> getURL('media/pdf/comparative.pdf', '_blank');
>
> but doesn't work...what code should I write in the script?
>
> thank's
> Matteo Pirola
> University of Ferrara
> Italy
>
>  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.
>
> 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.
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> 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.
>
> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111229/f9b8e863/attachment-0001.html>


More information about the Xerte mailing list