WAIT: Interactions: Animation startup has no option to set AJAX fetching

Maybe this should be in the Feature requests category, but when we interact for an element and for example I want to set the popup to be fetching by ajax I can only do it on Show element. because of this I can’t animate the popup input.

When I set it to Start Animation then I can’t achieve quick look through ajax. (popup appears empty, without content)

Here where we have Click > start animation and since he can also show popup then I guess here should also be options for ajax. Or am I wrong?

If this is not an bug, how can I achieve animation of popup which works as quick look in query loop?

Hi @poziomapl ,

I can open the AJAX popup with the Start animation without any context setting.

Did you include the popup template via template element? It is a must for a looping popup.

Ensure the Popup template has no condition and insert into your query loop via Template element.

image

Regards,
Jenn

According to bricks academy:

AJAX popup
Bricks introduces AJAX popups in 1.9.4. The primary goal is to reduce the DOM size and queries of popups when they are used within query loops.

I didn’t want to put a template into each loop with a popup just do it through ajax.
when i put it through the template it is probably possible. but why can’t the animation be called when it is in context id based?

or is there any manual way to animate popup when it is triggered not by start animation but by show element

thank you for the hint! :slightly_smiling_face:

Hi @poziomapl ,

Inserting the pop-up template inside the loop is required for looping content due to certain technical limitations in Bricks. (No matter it’s an AJAX or normal popup) And that’s the reason we wrote this article section Popup Builder – Bricks Academy

This doesn’t mean it will increase the DOM size. You can inspect the frontend HTML, and you will see only 1 Popup being outputted if your popup is AJAX enabled.

or is there any manual way to animate popup when it is triggered not by start animation but by show element

Unfortunately, I don’t see an alternative way for this currently.

By the way, I have created an improvement task so user can indicate the context type and ID when using Start animation + Target is a Popup