Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    How to re-initialize button events/triggers?

    Cloud CMS (Pagebuilder, Blog, Shop, Newsletters, Code Editor)
    2
    3
    171
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Thomas D last edited by Thomas D

      I'm loading buttons in ajax, but the appdrag script that attach events to buttons, loads before my ajax finishes.

      What's the script command to re-initialize?

      1 Reply Last reply Reply Quote 0
      • Joseph Benguira
        Joseph Benguira last edited by

        Hey Thomas,

        after adding new elements with Ajax add this to init buttons and links:

        setupButtons();
        handleLinks();
        
        T 1 Reply Last reply Reply Quote 2
        • T
          Thomas D @Joseph Benguira last edited by

          @Joseph-Benguira Thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post