Method onLoaded

Method onLoaded was created by betagoo

Posted 2 years 11 months ago #60612
How to run method onLoaded without create new instance of object Slideshowck?
I do not want create my own new object by
Code:
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?
by betagoo

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

Replied by ced1870 on topic Method onLoaded

Posted 2 years 11 months ago #60613
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
Code:
jQuery('#camera_wrap_129')
CEd

Joomlack Webmaster and Developer

by ced1870

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

Replied by betagoo on topic Method onLoaded

Posted 2 years 11 months ago #60671
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.
Last Edit:2 years 11 months ago by betagoo
Last edit: 2 years 11 months ago by betagoo.

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

Replied by ced1870 on topic Method onLoaded

Posted 2 years 11 months ago #60672
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

by ced1870

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

Replied by betagoo on topic Method onLoaded

Posted 2 years 11 months ago #60673
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.
by betagoo

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

Replied by ced1870 on topic Method onLoaded

Posted 2 years 11 months ago #60674
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

by ced1870

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

Time to create page: 0.652 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 696 guests and no members online