Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Rollover Slidelet - Execute JavaScript Issue

New Here ,
Sep 14, 2016 Sep 14, 2016

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?

524
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 14, 2016 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 14, 2016 Sep 14, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 14, 2016 Sep 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 14, 2016 Sep 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 14, 2016 Sep 14, 2016

I have not attempted from a server yet. I appreciate the comments! Do you think JavaScript is the right way to attack this?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 14, 2016 Sep 14, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 14, 2016 Sep 14, 2016

Still no luck so far... 😕

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 15, 2016 Sep 15, 2016

How is it that you are adding an interactive object to a rollover sidelet?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 15, 2016 Sep 15, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 15, 2016 Sep 15, 2016

I did it for swf attached to a sidelet and just a button.

For HTML5 the sidelet doesn't publish.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 15, 2016 Sep 15, 2016
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources