[Solved] converting XMLHTTPRequest into $ajax


Here’s a jQuery version of the code:

$.ajax({
    url : 'https://www.google.co.uk', //cross-domain? this won't work
    username : 'user',
    password : 'password',
    type : 'GET', //default is GET, but i put it here to clarify
    success : function(data){
        $('#listAttributes').html(data);
    }
});

For more details and settings, read the jQuery.ajax() documentation

1

solved converting XMLHTTPRequest into $ajax