1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how can I insert the loading in my add-on?

Discussion in 'XenForo Development Discussions' started by netkingZ, Oct 10, 2013.

  1. netkingZ

    netkingZ Active Member

    how can I insert the loading in my add-on?
    like this: [​IMG]
    To save time but I'm not uploading this, however I would like that to come out, of course only when you click on a submit button.

    thanks
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    That automatically appears when you use XenForo.ajax() IIRC.
     
  3. netkingZ

    netkingZ Active Member

    how do I use XenForo.ajax() IIRC with the submit button?
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    The form that the submit button submits should have a class of "AutoValidator"

    e.g.

    HTML:
    <form action="somelink" method="post" class="xenForm AutoValidator" data-redirect="on">
        // your form code here
    </form>
     
    Pereira and 0xym0r0n like this.
  5. netkingZ

    netkingZ Active Member

    Thank you ... works.
     

Share This Page