1 Reply Latest reply on Sep 6, 2010 9:35 AM by jordan.worner

    XMLHttpRequest with Basic Authentication


      Hi There


      I am trying to do a simple ajax request from a server that requires basic authentication.


      I have set up my request as follows:


           xml = new XMLHttpRequest();
           xml.onreadystatechange = function() 
                // handle data
           xml.open( 'GET', '<url>', true, '<username>', '<password>');     
           xml.send( null );


      I have added the username and password to the open method but when I run the application it is still prompting for the username and password.


      How do stop this prompt and use the values in the open method?