Need help with some functions and variables
        Posted  
        
            by Doug
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Doug
        
        
        
        Published on 2010-05-17T16:27:59Z
        Indexed on 
            2010/05/17
            16:30 UTC
        
        
        Read the original article
        Hit count: 201
        
AJAX
|JavaScript
function createXMLHTTP() {
           xmlhttp = =new XMLHttpRequest();
           return xmlhttp;
}
I'm trying to create 3 instances of this, but it all has the same variable name which is xmlhttp. How can I dynamically create different variable names? I'm not sure if that's the right way to ask the question.
I want to create like xmlhttp1, xmlhttp2, xmlhttp3, so then I can reference each one.
© Stack Overflow or respective owner