L
LAN MIND
if (xmlhttp) {
var url = "/jsapi/";
var filters = ['location_id', 'time_id'];
for (var i=0; i<filters.length; i++) {
url += gid(filters).value + '/';
}
I see the length property a lot and I'm confused about how it works.
Here I believe it says: loop through: var i is equal to 0, if i is
less than filters.length then i plus 1.
Does the loop count the number of characters in location and based
upon the value (number) of characters assign a certain url?
var url = "/jsapi/";
var filters = ['location_id', 'time_id'];
for (var i=0; i<filters.length; i++) {
url += gid(filters).value + '/';
}
I see the length property a lot and I'm confused about how it works.
Here I believe it says: loop through: var i is equal to 0, if i is
less than filters.length then i plus 1.
Does the loop count the number of characters in location and based
upon the value (number) of characters assign a certain url?