Printing data from multiple AJAX requests using JS
I am using the following JS code for a login system.
var ProgramFiles_Login_HomePageNew = {
LoginDetails:function(strLoginId,strPassword,callback,context) {
return new ajax_request (
this.url + '?_method=LoginDetails&_session=rw','strLoginId=' +
members[i] + '\r\nstrPassword=' + members[i], callback, context);
}
If I have an array, say
var members ["a","b","c"];
Assuming that the username and password are the same (strLoginId and
strPassword), how can I print the data returned for multiple AJAX requests
with the login credentials a, b and c?
Is there a way to loop the AJAX request from members[0] to members[i] such
that each request is sent, and the page loaded is printed on the HTML page
containing this script?
No comments:
Post a Comment