Answer the question
In order to leave comments, you need to log in
How to get xml data of two ajax requests from a link?
Good time of the day.
Tell me how to make two ajax requests to an external server from the form with a login and password,
the first request should catch e-mail
https://lk.webvm.ru/billmgr?authinfo='login':'password''&out=xml&func=user
$xml->elem as $info
$info->email;
https://lk.webvm.ru/billmgr?authinfo='login':'password'&out=xml&func=domain
$('.bill_botton').click(function() {
var login = $('#authLogin').val();
var password = $('#authPassword').val();
$.ajax({
type: "POST",
url: "https://lk.webvm.ru/billmgr?authinfo='login':'password''&out=xml&func=user",
dataType: "xml",
success: function( data ){
alert(data);
}
});
});
Answer the question
In order to leave comments, you need to log in
Try
url: 'https://lk.webvm.ru/billmgr?authinfo=' + login + ':' + password + '&out=xml&func=user',
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question