📲 Download Our Apps

EMI Calculator

Download EMI Calculator

SOA Games

Download SOA Games

SOA Technology App

Download SOA Technology

BMI Checker

Download BMI Checker

Task Jira

Download Task Jira

Laughing Adda

Download Laughing Adda

📅 हिंदी कैलेंडर ऐप डाउनलोड करें

Download Shubhcalendar App

run code after ajax success

<script>
    var done = 0;
    var ind=1;
    var timer=3000;
    var forreplace='soatechnology.net';
      $('form#seoform').submit(function(e) {
        $('#btn').html('Please Wait');
        var form = new FormData($('#seoform')[0]);
$.ajax({
    type: "POST",
    url: "Action/AddWebsite.php",
    data: form,
    cache: false,
    contentType: false,
    processData: false,
    success:  function(data){
        //alert("---"+data);
        $("html, body").animate({ scrollTop: 100 }, "slow");
        if(data <= 0)
        {
          $("#info").html('Already submitted');
          done = 0;
        }else{
          $("#info").html('Submit successfully');
          done = 1;
        }
      $('#seoBtn').html('<a href="/free-website-submission" class="btn btn-success">NeW Submit</a>');  
    },
    complete: function (data) {
      staticWebsite = $("#staticWebsite").val();
            $("#curlresult").html('');
           if (staticWebsite.trim() == '') {
                return false;
            }
      if(done)   {
      
      myfun();
      
    }
     }
});
           
            e.preventDefault();          
       
      
               });
              
        function myfun(){
            
       var myVar = setInterval(ajaxfun, timer);
         
           function ajaxfun()
           {
               url=pausecontent.pop();
             url=url.replace(forreplace,staticWebsite);
              
               $.ajax({
                //api call
                url:  'Action/Curl.php',
                //api call end
                data: {
                    url: url,
                                  },
                type: 'POST',
                dataType: 'json',
                beforeSend: function() {
                 
                },
                complete: function(data) {
                     $("#curlresult").append('<li class="list-group-item list-group-item-action bg-light">'+ind+" "+url+'</li>  ');
                  //
                     ind ++;
               if(!pausecontent.length)
            {     clearInterval(myVar);
            
               }
               
                    },
                success: function(data) {
               //  console.log(ind);   
               
                },
                error: function(xhr, ajaxOptions, thrownError) {
                  //  alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
                  $("#curlresult").append('<li class="list-group-item list-group-item-action bg-light">'+ind+" "+url+' Error</li>  ');
                }
            });
           }
            
              
                  
              
        }
        </script>



Leave a Reply

AI Spiritual Tools & Interactive Experiences

Explore powerful AI-driven tools for daily guidance, spirituality, fun quizzes, and self-discovery.

Today’s Quote

Get inspiring daily quotes powered by AI to motivate and guide your day.

Explore Now

AI Tarot Card Reader

Reveal insights about your future, love, and career with AI tarot readings.

Read Tarot

Love Match Calculator

Check compatibility and love predictions using AI-based analysis.

Check Match

Fortune Cookie

Open an AI fortune cookie and receive wisdom, luck, and fun messages.

Open Cookie

Quiz Categories

Engage with knowledge-based and fun quizzes across multiple categories.

Start Quiz

Panchang Calendar

View daily Panchang, auspicious timings, tithi, nakshatra, and festivals.

View Panchang

Online Numerology

Discover your destiny number, life path, and numerology predictions.

Calculate Now

Spiritual Feeds

Stay connected with spiritual thoughts, mantras, and divine content.

View Feeds

Quiz Hub

Attempt trending quizzes on GK, spirituality, festivals, and more.

Explore Quizzes