ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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.

Annotazione_2020-04-17_071705.png


Annotazione_2020-04-17_071807.png


Annotazione_2020-04-17_071826.png
Max_admin 18 Apr, 2020
Maybe reload the whole table with the 2 dropdowns included ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
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 workAnnotazione_2020-04-22_062229.png
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

Annotazione_2020-04-22_175009.png


Annotazione_2020-04-22_175106.png


Annotazione_2020-04-22_175146.png


Annotazione_2020-04-22_175249.png
ieraora 22 Apr, 2020
For me problem is here. I tried with and without this.

Annotazione_2020-04-22_223133.png
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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
ieraora 28 Apr, 2020
Where I give "id" for table? Where is container area?
Annotazione_2020-04-28_135556.png
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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
ieraora 29 Apr, 2020
I have tried both of the following without success

Annotazione_2020-04-29_202158.png

Annotazione_2020-04-29_202231.png

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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com