Run multiple jquery on change

ieraora 17 Apr, 2020
Hello, I'm not expert with jquery.
I need to run two istances of jquery on change: when I selected a dropdown (filter) I would reload subfilter dropdown and also filter table.
Separately these work correctly, but how can I use together?
Thank you for replay.

Run multiple jquery on change image 1


Run multiple jquery on change image 2


Run multiple jquery on change image 3
Max_admin 18 Apr, 2020
Maybe reload the whole table with the 2 dropdowns included ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ieraora 18 Apr, 2020
Hi Max, thank you for replay, sorry but I don't understand..
ieraora 21 Apr, 2020
I have tried various solutions without success
healyhatman 22 Apr, 2020
So why can't you just put both events in the events tab? Does that not work?
ieraora 22 Apr, 2020
Because I don't know what insert:
CHANGE > ? > ?
healyhatman 22 Apr, 2020
You can just do another reload, reload the table area?
ieraora 22 Apr, 2020
it doesn't workRun multiple jquery on change image 4
ieraora 22 Apr, 2020
Only subgallery_sel work
healyhatman 22 Apr, 2020
On your index event, where you display your list, do it like this
<div data-reloadurl="{url:reload_table_event_name_here}" name="table_wrapper">
{view:your_table_view_name}
</div>

In your onchange event for the dropdown, the target will be "table_wrapper"

In your table reload event, you will want something like
{fn:read_data}
<div data-reloadurl="{url:reload_table_event_name_here}" name="table_wrapper">
{view:your_table_view_name}
</div>
ieraora 22 Apr, 2020
Also don't work

Run multiple jquery on change image 5


Run multiple jquery on change image 6


Run multiple jquery on change image 7


Run multiple jquery on change image 8
ieraora 22 Apr, 2020
For me problem is here. I tried with and without this.

Run multiple jquery on change image 9
ieraora 24 Apr, 2020
Where I wrong?
Max_admin 27 Apr, 2020
I still recommend that you reload the whole table area, give your table an "id" attribute and use that to reload, selector will be #table_id

You may check the browser network tab to find if the reload url gets called or not.

Also the container area has a reload setting, so you may place the table in a container area and reload the container instead!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ieraora 28 Apr, 2020
Where I give "id" for table? Where is container area?
Run multiple jquery on change image 10
Max_admin 29 Apr, 2020
I'm sorry, Connectivity has no Container area!

what happens when you use the table class as selector: .ui.table ?

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ieraora 29 Apr, 2020
I have tried both of the following without success

Run multiple jquery on change image 11

Run multiple jquery on change image 12

I remember that, if i try
jQuery(document).on('change', 'select[name="gallery_sel"]', function() { jQuery('.ui.form').form('submit'); } );

the table update correctly himself, but not subgallery dropdown.

Thank You
Max_admin 19 May, 2020
Are you still working on this issue ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.