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 8648153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:14:55+00:00 2026-06-12T13:14:55+00:00

I have the following piece of code that pulls an image URL from a

  • 0

I have the following piece of code that pulls an image URL from a PHP script via ajax, based on a parameter that I pass to this function. The result is the existing image fades out (jQuery), the src attribute gets the new image and the image is faded back in. This is working like charm in Chrome, Firefox etc., however IE9 throws the error:

‘SCRIPT28:Out of stack space’

If I switch IE9 to IE8 or IE7 mode, it works fine, even if the error still shows up, but in IE9 it fails to take off. Where am I going wrong?

function imager(dt){
    $('.ct_img').fadeOut(400);
        var urip = homeURL + '/qwm/CF_QRGR/' + encodeURIComponent(dt) + '/';
        $.ajax({url:urip, success:function(result){
            
            $.doTimeout(400,function(){
                if(result=='0'){
                $('.ct_img').attr('src',homeURL + '/public/img/site/load_fail_message.jpg').bind('load', function (e) {
                    $('.ct_img').fadeIn(400)
                        });
                } else {
                $('.ct_img').attr('src',homeURL + '/public/img/bank/vault/' + result).bind('load', function (e) {
                    $('.ct_img').fadeIn(400)
                        });
                }
                });
                
        }
        });
    
    
}
  • 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-06-12T13:14:57+00:00Added an answer on June 12, 2026 at 1:14 pm

    I suspect it’s an event binding. Does the event binding work without jQuery? Could there be a lot of .ct_img classes around? Because this would replace all their src and maybe that’s overloading it? So here, using ID instead

        var img = document.getElementById( "ct_img");
        img.src = url;
        img.onload = function() {
            $('#ct_img').fadeIn(400);
         };
    

    I don’t know if IE has full stacktraces, but to see if you have recursion, you could console log

     arguments.callee.caller.name.toString()
    

    to see what method is invoking it.

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

Sidebar

Related Questions

I have the following piece of Java code that reads strings from CSV file.
I have the following piece of code from a function that takes the host
I have the following piece of code that is taken from a mock exam
I have the following piece of code that takes in some words, stores them
I have the following piece of code that generate a jquerymobile-style button <a href=#
I have the following piece of code that finds all elements in the document
I have the following piece of code in my MainViewController. Is that the best
I have the following piece of code (that may be invoked multiple times or
I have the following piece of code that I'm expecting to run on a
I have following piece of code which tries to load an XML file from

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.