Click here to Skip to main content
15,907,183 members

Comments by Member 10418736 (Top 5 by date)

Member 10418736 10-Mar-15 14:27pm View    
Closer to explain?
Thank
Member 10418736 2-Jan-15 15:00pm View    
This link is a project
https://www.transferbigfiles.com/0d8678bd-05b1-4a48-98bc-ac53767c0634/-br17aOg-wowmBQ_H2JVBA2
I thank check
Member 10418736 2-Jan-15 14:36pm View    
Thanks.
All of my code

if (!minPrice && !maxPrice) {
filterdProducts = products;

} else{
$.each(products, function(i, object) {
var curentPrice = parseFloat(object.price);
var priceMinOk = true;
var priceMaxOk = true;
// filter results match the price range
if(maxPrice || minPrice){
if(maxPrice && maxPrice<curentprice){ pricemaxok="false;" }="" if(minprice="" &&="" minprice="">curentPrice){
priceMinOk = false;
}
}
// loop over list and get only related to new array
if (priceMinOk && priceMaxOk) {
a = os.match("android");
i = os.match("ios");
o = os.match("other");
colors = os.match("red");


if (a == "android" || i == "ios" || o == "other" || colors == "red") {

if (object.os == a || object.os == i || object.os == o || object.color == colors) {

filterdProducts[key] = object;
key++;
}
}
else {
filterdProducts[key] = object;
key++;
}
}
});
}

I let the check box to search by color , os
Member 10418736 2-Jan-15 10:55am View    
I would use this method.
If this was the explanation for this?

var filterdProducts = []; // displayed products array
var key = 0;
filterdProducts = products;
if (a == "android" || i == "ios" || o == "other" || colors == "red") {

if (object.os == a || object.os == i || object.os == o || object.color == colors) {

filterdProducts[key] = object;
key++;
}
}
else {
filterdProducts[key] = object;
key++;
}
Member 10418736 27-Dec-14 16:31pm View    
Yes. But I do not know the link.
If it's a way I can do it yourself ?
Thank