Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Method onLoaded

Method onLoaded 29 Apr 2021 11:33 #60612

  • betagoo
  • betagoo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
How to run method onLoaded without create new instance of object Slideshowck?
I do not want create my own new object by
var new_slider_object = new Slideshowck( '#camera_wrap_129', {});
If I create new object manually, I can not get sildeshow options set into Joomla Module Administration panel.
I need access to object loaded into file mod_slideshowck.php
Is this possible?

Please Log in or Create an account to join the conversation.

Method onLoaded 29 Apr 2021 12:11 #60613

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 24746
  • Karma: 427
  • Thank you received: 3106
Hi
the "onLoaded" is a callback that shall be set in the instance, during the creation of the slideshow
I don't use this by my side

Please explain me what you need, because once the slideshow has been created you can access it with something like
jQuery('#camera_wrap_129')
CEd
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Method onLoaded 06 May 2021 10:11 #60671

  • betagoo
  • betagoo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I try improve accesibility of images (WCAG 2.1).
I need rewrite data-alt attribute value from div-s placed into container div.camera_src to ALT attribute of image placed into dontainer div.cameraContent.
But the script load only firs image and the second.
So I need run function every time next slide is loaded to rewrite ALT-s.
Otherwise some images have empty ALT tag.

Please Log in or Create an account to join the conversation.

Last edit: by betagoo.

Method onLoaded 06 May 2021 10:48 #60672

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 24746
  • Karma: 427
  • Thank you received: 3106
I don't understand :
- "cameraContent" is the container of the captions, not the images. The images are stored in "cameraCont"
- by default the alt tag is added on each image
- "camera_src" is the base source code which is not used in the rendered slideshow, the slideshow uses this info at start to create all the slides

I don't really understand what you are trying to do, as for me the alt tags are already loaded
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Method onLoaded 06 May 2021 11:45 #60673

  • betagoo
  • betagoo's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Please check ALT tag using this tool chrome.google.com/webstore/detail/wave-e...ebjpijfedlgcdilocofh
For reproduce, You have to add to slide more than 2 images, for example 4.
You will see, some images has no ALT tag.

Procedure:

1. Set auto play to false

2. Refresh page

3. Check images into .cameraCont
Container should contain 2 images, and everyone should have ALT text.

4. Click button Next Slide once.
Check images into .cameraCont
First two images should have ALT text.
Third image (into cameraSlide_2) doesn't have ALT text - that is the point.

Please Log in or Create an account to join the conversation.

Method onLoaded 06 May 2021 11:57 #60674

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 24746
  • Karma: 427
  • Thank you received: 3106
I understand what you mean
you must understand how it works :)
- the 2 first images are loadedn the other images are not loaded until you request them (sort of lazy loading to improve the page speed)
- when you cick on the next button, it will load the needed image

but, in anyway, the alt tag is added on every image that is created. So your first thought is not good, because the job is already done
The problem is that you thought that the alt tag are missing, but the fact is that the images are not loaded

The only images that does not have the alt tag, are the thumbs. Please try to disable the thumbs and check if this is the problem on your side
Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.181 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 527 guests and 3 members online