Bugged OnClick actions on images

I have trouble making a simple image with attached On Click action work in Chrome on Mac, Android built-in browser and iOS web view. The image12345.up() function exits after this line:

if( (is.ie || is.nsMac) && !e ) return


This is because e is undefined. In the line before that, e is set only for IE: if( is.ie ) e = event.


I guess some extra browser testing is in order. So far I just have to use transparent buttons on top of images.

Discussion (6)

I had a very similar problem. Images with actions wouldn't work until something else on the page is clicked e.g. the background.


so for example lets say you 5 images on one page and all of them have an action to hide the clicked image and show the next clickable image. Swapping the first image actions onto a transparent button will fix the problem. Once the first Transparent button is clicked the remaining Images actions will run as expected.


Hope this helps someone!

Yes, buttons capture clicks in a different manner, so they work across all devices I had to test. And actions on buttons failed in Chrome on Mac.

Hey guys...this is a dated thread, but I'm wondering if either of you landed on a final resolution to this action+images issue on a Mac. Was it associated with a particular version of Lectora (bug)?

I'm running into a similar issue with a course that started as v11, migrated to v12, and finally completed in v16. Yep, the trifecta! Here's the fun part...if I take the v11 prototype and publish with 12.1.4 or 16.0.2, the images+actions function properly. This, and the time of your threads, leads me to think it was some version of 12 that introduced the problem.

Thanks in advance!

BrianR

undefined

Let's try pinging @support :)

Did you experience this with any specific action type, i.e. go to next page, display message, etc.? Also, were you testing content published out to HTML or were you seeing this once published out to SCORM or AICC and running from your LMS?

My experience was that there wasn't any particular action(s) that caused the issue. It was pretty much wholesale. Some of the actions I used were Goto, Close Window, Display message, Pause media, Play media, Stop media, Run action group, Modify Variable.

The only publish I was able to test is a SCORM 1.2 version running on SCORM Cloud. I don't have a Mac so all testing was completed by my client.

To re-iterate an early comment, ALL features and actions work perfectly on Windows in any browser. The issue only occurs on a Mac.

My solution in the short term is to change all the clickable objects from images+actions to buttons+actions. When I use the button object, the issues goes away on a Mac.

undefined

Discussions have been disabled for this post