Dependent delay between next call
Dependent delay between next call
How to call editor.dependent in the correct order for a cascading list.
I have the same as in the example
https://editor.datatables.net/examples/advanced/cascadingLists.html
In my example, I have 3x editor.dependent, each subsequent one limits the next field, the last one leaves a list of available checkboxes to choose from.
unfortunately, all php are called simultaneously, so the last function is called 3 times. Is there any way to force waiting before the next editor.dependent
Answers
I see you're using Editor in your example, but our accounts aren't showing that you have a license - it just reports that your trials have expired, the last one in June. Is the license registered to another email address? Please can let us know so we can update our records and provide support.
Thanks,
Colin
Colin I haven't decided to buy and license yet, I still need to work on the project a bit to check if I will have all the functionalities in the editor. I downloaded one more trial to another email sorry.
Thanks for linking it together for us. If you end up needing an extension, just drop me an e-mail .
At the moment, unfortunately, no - there isn't a way of doing exactly what you want. The
dependent()
action is called whenever there is a change in the value of the field. That means that when the field is setup for editing, it will trigger the dependent action. Then again if another one sets its values, etc.I'll have a think about how I can improve this for the cascade style - but at the moment, it is going to involve a few extra Ajax calls - sorry.
Allan
It wouldn't be a problem that ajax is executed several times, but the wrong checkboxes are checked after this.
The error is only when editing