Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6017623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:09:20+00:00 2026-05-23T03:09:20+00:00

Hello everyone I’ve never had a problem which i cant solve with google… So

  • 0

Hello everyone I’ve never had a problem which i cant solve with google…
So this is the code:

function loadData(url, type){
        loading_show();  
        var quality = getCheckedRadio();
        $.ajax
        ({
            type: "POST",
            url: "http://.../core.php",
            data: "url="+url +"&quality="+quality +"&type="+type,
            success: function (msg)
            {
                $("#url").ajaxComplete(function(event, request, settings)
                {
                    //loading_hide();
                    //$("input[type=button]").removeAttr("disabled");         
                    $("#url").html(msg);
                    window.onload=$("#url").fadeIn('slow');
                });
            }
        });
        return false;
}
function getmp3(id){
        var quality = getCheckedRadio();
        $.ajax
            ({
                type: "POST",
                url: "http://.../core.php",
                data: "id="+id +"&quality="+quality,
                success: function (msgs)
                {
                    $("#dload").ajaxComplete(function(event, request, settings)
                    {
                        loading_hide();
                        $("input[type=button]").removeAttr("disabled");         
                        $("#dload").html(msgs);
                        window.onload=$("#dload").fadeIn('slow');
                    });
                }
            });
}

So, the first function works just fine, the core.php returns some html data and a javascript: ” getmp3(‘bla’); ” so it fires the second function. The problem is that the $.ajax in the ‘getmp3’ function repeats over and over again and it floods the browser. It does what it has to but it just doesnt stop calling over and over.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:09:21+00:00Added an answer on May 23, 2026 at 3:09 am

    You don’t need the ajaxComplete functions, you can put the code directly in the success function.

    function loadData(url, type){
            loading_show();  
            var quality = getCheckedRadio();
            $.ajax
            ({
                type: "POST",
                url: "http://.../core.php",
                data: "url="+url +"&quality="+quality +"&type="+type,
                success: function (msg)
                {
                        //loading_hide();
                        //$("input[type=button]").removeAttr("disabled");         
                        $("#url").html(msg).fadeIn('slow');
                }
            });
            return false;
    }
    function getmp3(id){
            var quality = getCheckedRadio();
            $.ajax
                ({
                    type: "POST",
                    url: "http://.../core.php",
                    data: "id="+id +"&quality="+quality,
                    success: function (msgs)
                    {
                            loading_hide();
                            $("input[type=button]").removeAttr("disabled");         
                            $("#dload").html(msgs).fadeIn('slow');
                    }
                });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello can anybody solve this please I'm creating the object in the action class
Hello everyone I am trying to resize an image of 700kb with imagecreatefromjpeg. This
Hello everyone I'm currently having 2 issues with the code below: Upon return of
Hello everyone I have error which breaks up my build for no reason, here
Hello everyone and thanks in advance. I have a problem and I have 2
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello I am working with a simulator that uses rcS scripts to boot, this
Hello everyone, I'm developing a photo sharing web site using the CodeIgniter PHP framework
Hello everyone Masters Of Web Delevopment :) I have a piece of PHP script
hello everyone it is me again! i've got few problems too. i am deveoping

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.