Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Is your JavaScript set to "current" window and continue playing project unchecked?
Copy link to clipboard
Copied
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 ![]()
Copy link to clipboard
Copied
It needs to be set to current.
Perhaps your local environment it not letting the JS execute. Have you tried it on a server?
Copy link to clipboard
Copied
I have not attempted from a server yet. I appreciate the comments! Do you think JavaScript is the right way to attack this?
Copy link to clipboard
Copied
I don't see why not.
I just did it with swf and HTML5 with this code;
window.open("")
window.open("")
window.open("")
It opened 3 windows.
Make sure you use double quotes and no spaces.
Copy link to clipboard
Copied
Still no luck so far... 😕
Copy link to clipboard
Copied
How is it that you are adding an interactive object to a rollover sidelet?
Copy link to clipboard
Copied
It's not on the actual slidelet. There's an action related to a 'click' on the rollover area for the slidelet. By default, it's set on "continue" - I just typically use it to open the documents in another window, or shut that functionality off completely.
So when you got the JS to work, it wasn't part of the slidelet - as described in my scenario? Perhaps that's why mine still isn't working.
Copy link to clipboard
Copied
I did it for swf attached to a sidelet and just a button.
For HTML5 the sidelet doesn't publish.
Copy link to clipboard
Copied
I've decided to move on with a different solution. Instead of a single click to bring up the three documents, I've just created three separate click points.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now