I need to retrieve the parameter passed in answer to a AJAX request.
Using this code:
$.ajax({
url: 'https://example.com/login/',
data: { username: User, password: Pass },
type: 'get',
success: function (output) {
...
}
});
The page return some parameters i.e. https://example.com/login/?res=success&...
How can I get those parameter instead of the page content in "output"?
I add some information.
We use an external hotspot service provider in order to provide wifi access to our customers. The service is hosted on a website i.e. www.example.com We need to provide our customers the ability to enter their credentials from our website. The above code is in our website and the ajax request is directed to the login page of the hotspot service provider. When I send the request, the page return the parameter ?res=success. I need to get this parameter after my ajax request.