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
PYSYCACHE(1)															      PYSYCACHE(1)

NAME
pysycache - educational software to learn to manipulate the mouse with pleasant activities. SYNOPSIS
pysycache [-nf] [-wf] [-ns] [-ws] [-nh] [-nc] [-lang=xx_XX] [-font=xx] [-admin] [-debug] DESCRIPTION
pysycache is an educational software for the young children (4-7 years old) with target to learn them to use the mouse (move, click or drad'n'drop). Each activity teaches a mouse usage with a pleasant window : move : user must uncover a picture hidden by a cache with it's mouse movements. buttons : user must lead animal at it's home (right item at the right home and left item at the left house) by clicking with the right and left buttons of the mouse. click : user must find six photographies in a landscape : when the mouse becomes red, it must click in order to see the photography. double-click : user must catch some items with a fillet. drag'n'drop : user must make a jigsaw by drag and drop pieces at their correct place. This game doesn't want some powerful computer, and it can be used at home with yours children, or in the schools. OPTIONS
Options are used in order to don't use the user preferences (stored in it's setting file pysycacherc) -nf runs pysycache in non-fullscreen (hence windowed) mode. -wf runs pysycache in fullscreen mode. -ns runs pysycache without sound. -ws runs pysycache with sound. -nh runs pysycache without sound for the help items. -nc pysycache doesn't show credits at the end of the game. -lang=xx_XX force the lang detection by using the lang xx_XX located in the lang directory of pysycache. -font=xx force the font xx to be used in the menus. The font must be located in the fonts directory of pysycache. -admin runs pysycache in admin mode (for configure the pysycache mode, the users). -debug runs pysycache in debug mode. AUTHOR
This man page was initially created by Georges Khaznadar, and is completed by Vincent DEROO. October 12, 2006 PYSYCACHE(1)