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

  • SEARCH
  • Home
  • 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 6180021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:46:25+00:00 2026-05-24T00:46:25+00:00

I think that I have a memory leak in my app witch I can’t

  • 0

I think that I have a memory leak in my app witch I can’t localize.

The application downloads content and displays it. When the content is already downloaded it just displays it (because it was downloaded earlier).

The bug shows up when I choose at least 10 different options from the select.
(choose option 1 and confirm with #wcc-submit and wait to load, …, choose option 10 and confirm with #wcc-submit and wait to load). With each selected option the app gets slower. Finally this error shows up:

IE 6 error

The app is tested in IE6.

js:

<script type="text/javascript">
(function($){
$(function(){
var language = 'de';
var fadeOutSpinnerFadeInContent = function(pageID) {
    $('#wcc-loader').fadeOut(500, function() {
        $('#wcc-content-'+pageID).fadeIn(500);
    });
};
var makeAjaxCall = function(pageID) {
    $.ajax({
        url: '/some/path/'+language+'/'+pageID+'.php',
        type: 'get',
        dataType: 'html',

        success: function(data, textStatus, jqXHR) {
            $('#wcc-content-container').append('<div id="wcc-content-'+pageID+'" class="wcc-content hide">'+data+'<div>');
        },
        error: function(jqXHR, textStatus, errorThrown) {
            alert('error');
        },
        complete: function(jqXHR, textStatus) {
            fadeOutSpinnerFadeInContent(pageID);
        }
    });
};
var downloadContent = function(pageID) {
    $('#wcc-loader').fadeIn(500, function() {
        makeAjaxCall(pageID);
    });//end fade out spinner
};
var openPage = function(pageID) {
    var earlierContent = $('.wcc-content');
    if( earlierContent.size() > 0 ) {
        earlierContent.fadeOut(500, function() {
            if( $('#wcc-content-'+pageID).size() > 0 ) {
                $('#wcc-content-'+pageID).fadeIn(500);
            } else {
                downloadContent(pageID);
            }
        });
    } else {
        downloadContent(pageID);
    }
};

var availableHashArray = [
    '-1',
    'page_id_1',
    'page_id_2',
    ...
    'page_id_100',
    ],
    choosenHash = $.inArray( window.location.hash.substring(1), availableHashArray);

$('#wcc-submit').bind('click.cs', function() {
    var selectedValue = $('#select-1').val();

    if(parseInt(selectedValue, 10) !== -1) {
        window.location.hash = selectedValue;
        openPage(selectedValue);
    }
});

if( choosenHash !== -1 ) {
    $('#select-1 option[selected="selected"]').removeAttr('selected');
    $('#select-1 option').eq(choosenHash).attr('selected', 'selected');
    $('#wcc-submit').trigger('click.cs');
}

});
})(jQuery);
</script>

html:

<div id="wcc-form" class="fm-form">
    <form action="#" method="post">
        <div class="select-form">
                    <label class="hidden" for="select-1">Choose an option</label>
                    <select id="select-1" class="fm-text fm-select" name="select-1" >
                        <option value="-1" selected="selected">Choose an option</option>
                        <option value="page_id_1" selected="selected">option 1</option>
                        <option value="page_id_2" selected="selected">option 2</option>
                        ...
                        <option value="page_id_100" selected="selected">option 100</option>
                    </select>
                    <input id="wcc-submit" type="button" value="Show" />
        </div>
    </form>
</div>
<div id="wcc-content-container">
</div>
<div id="wcc-content-container">
    <div id="wcc-loader" class="hide"></div>
</div>

css:

<style type="text/css">
.hide{
    display:none;
}
#wcc-loader{
    height:50px;
    background:#fff url('/some/path/to/spinner.gif') 50% 50% no-repeat;
}
    #select-1{
        margin-left:20px;
    }
</style>
  • 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-24T00:46:25+00:00Added an answer on May 24, 2026 at 12:46 am

    Ah yes, I know the answer to this one.

    “Disregard the whole problem because it’s IE6 and it has to die.”

    What? Someone had to say it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have memory leak in the web application (servlet) that I am working on.
I have some PL/SQL code that I think might have a memory leak. Everytime
Having an issue here that I have tried everything I can think of but
I have application written in C#. Memory usage shows that there is a memory
Alright, so I think my program might have a memory leak. It's an SDL
I think that Visual Studio's biggest let down is the Javascript editor. I have
I have installed zend server on my mac and i think that there are
I have a peculiar problem, which I think that a lot of other people
How do you make JS think that a string is JSON ? I have
O.K. I think that's an easy one! I have a ViewMasterPage with some links

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.