Ajax Post & IE8


 
Thread Tools Search this Thread
Top Forums Web Development Ajax Post & IE8
# 1  
Old 07-08-2011
Ajax Post & IE8

I have an Ajax script that runs on IE9 & FF but not IE8...well it runs but there is some sort of memory leak so the script runs slower and slower with each consecutive click because the code being processed is not being cleared each time, or something. I found some articles online and tried them but with no luck. How do I stop the cycle?

Code:
 if (window.XMLHttpRequest){xmlhttp=new XMLHttpRequest(); }
        // code for IE
        else if (window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
        if (xmlhttp!=null){
            
            $.ajax({type: "POST", url:"/load-content/", global: false, data:({img:showcase, clicked:click_name, off:off_name,menuv:aname}), async:true, dataType: "html", success: function(xml) {
                   // format and output result  
               
                   nshow = jQuery("div p.p2").html(xml);
                
            xmlhttp= null;
            }
        });

        return false;
        }

Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Red Hat

Server health Checks pre & post Rebooting

Hi, Earlier we used to reboot servers based on adhoc request, never checked anything on it pre-reboot., But now i need to reboot regularly but most of the info is not available, I need to know want to make sure that server to be rebooted without any issues, so I want to do few prechecks which will... (5 Replies)
Discussion started by: nanz143
5 Replies

2. Post Here to Contact Site Administrators and Moderators

kindly reconsider my post in shell & scripting forum

Hi, this is regarding my post "ksh: how to extract strings from each line based on a condition" . Its not a home work or an assigment. I actually work in retail domain. The data I handle is very complex and confidential.So I can't divulge the actual patterns. In order to explain my problem, I have... (1 Reply)
Discussion started by: angie1234
1 Replies

3. Web Development

Sending Post Parameters With Ajax

Hi!!! I'm having a little problem with a web application I'm developing. I need to send a query to a php script using post method of Ajax. I created the variable where the query is stored and it looks like this: consulta= barrio="Monserrat" or barrio="Palermo"&buscar=1; this is in a... (2 Replies)
Discussion started by: Sandia_man
2 Replies

4. SCO

XML Import & HTTP Post

this may be very basic to some but all new to me I have an application running on SCO Unix server which issues an HTTP Post request to a server with the results being returned in I.E browser window in XML format I need to import these results into my customers application and dont know how to... (1 Reply)
Discussion started by: ccarcher
1 Replies
Login or Register to Ask a Question
BACON(1)							       bacon								  BACON(1)

NAME
bacon - small RSpec clone SYNOPSIS
bacon [options] [files | -a] [-- untouched arguments] DESCRIPTION
Ruby options: -e, --eval LINE evaluate a LINE of code -d, --debug set debugging flags (set $DEBUG to true) -w, --warn turn warnings on for your script -I, --include PATH specify $LOAD_PATH (may be used more than once) -r, --require LIBRARY require the library, before executing your script bacon options: -s, --specdox do AgileDox-like output (default) -q, --quiet do Test::Unit-like non-verbose output -p, --tap do TAP (Test Anything Protocol) output -k, --knock do Knock output -o, --output FORMAT do FORMAT (SpecDox/TestUnit/Tap) output -Q, --no-backtrace don't print backtraces -a, --automatic gather tests from ./test/, include ./lib/ -n, --name NAME runs tests matching regexp NAME -t, --testcase TESTCASE runs tests in TestCases matching regexp TESTCASE Common options: -h, --help Show this message --version Show version bacon 1.1.0 July 2011 BACON(1)