Skip to main content
Known Participant
September 14, 2016
Question

Rollover Slidelet - Execute JavaScript Issue

  • September 14, 2016
  • 2 replies
  • 522 views

Friends -
I'm an admittedly new JavaScript user, so my issue could certainly be user-error.

My Situation:

I have a slide in my project with 3 slidelet areas. The client wants to display 3 document icons, when the user hovers over the icons, the slidelet shows an image of the document and it's title. Two of the icons are working properly since I've set up the 'On Click" action to 'Open URL or file'. They open up the PDF's perfectly. No issue there.

Here's the Problem:

The third icon on the screen actually represents 3 separate documents, which the client requested all be opened upon a single click.  (i.e. think - "Required Forms" icon *click* opens the 3 pdf's)

I was trying to accomplish this through a simple JavaScript execution. I followed this little tutorial, but I'm getting nothing. In fact, upon click, it sometimes skips to the next slide, which shouldn't happen at all. Any ideas?

    This topic has been closed for replies.

    2 replies

    TLCMediaDesign
    Inspiring
    September 14, 2016

    Is your JavaScript set to "current" window and continue playing project unchecked?

    bekercheAuthor
    Known Participant
    September 14, 2016

    I had it set to "new" window, since I didn't want the users to have to restart the course after viewing the documents. I also had the Continue Playing box checked.

    I just attempted it again with "current" selected, and continue playing unchecked - This still doesn't open my files, but the course no longer jumps to the next slide. I'm assuming this is due to the continue playing checkbox being deselected

    TLCMediaDesign
    Inspiring
    September 14, 2016

    It needs to be set to current.

    Perhaps your local environment it not letting the JS execute. Have you tried it on a server?

    bekercheAuthor
    Known Participant
    September 14, 2016

    I just read this article from Infosemantics and am now rethinking the use of JavaScript. However, my constant pursuit of knowledge still causes me to want to hear some feedback

    Any suggestions on the best method to accomplish this would be fantastic.