Can I Disable A Link Rather Than a Button While a Server Connect Executes?

I have a navigation link which I want to disable while a server connect is executing. Can I do that?

Here is the link:

<a data-toggle="collapse" data-target="" class="nav_icons_item nav-item nav-link align-self-center" href="#" id="a_nav_main_crontab" dmx-on:click="test_crontab_commands.load()" ><i class="far fa-clock"></i></a>

So I tried adding:


And it doesn’t disable it…

Is there anything else I can try?

could you possibly make the link a hashtag while executing then re bind your actual link not sure if this would work?

@Sorry_Duh, that wouldn’t work as it is executing a server connect on-click

Guys, the HTML disabled attribute is not available for anchor tags:

You can add a class to it when the server action is being executed. And with that class you can assign: pointer-events: none;

Genius idea @Teodor… works like a dream. Thank you for the input on a Saturday afternoon… much appreciated! :slight_smile:
Wishing you a wonderful weekend,

1 Like