Trouvez la maison neuve de vos rêves !
En collaboration avec notre partenaire ProjetHabitation.com (le seul site au Québec à offrir un répertoire spécialisé en affichage de nouveaux projets), Qualité Habitation vous offre la possibilité de trouver un large choix de projets offrants le plan de garantie Qualité Habitation.
var searchAPI = "http://www.projethabitation.com/SearchAPI?Format=jsonp";
function loadCategories() {
$("#CategoriesDropDown").attr("disabled", true);
$.ajax({
url: searchAPI + "&Query=Categories&CategoryIDExclusions=5",
dataType: "jsonp",
success: function(rows) {
$("#CategoriesDropDown>option").remove();
for(var i = 0; i < rows.length; i++)
$("#CategoriesDropDown").append("" + rows[i].Category +
" ");
$("#CategoriesDropDown").removeAttr("disabled");
}
});
}
function loadRegions() {
$("#RegionsDropDown").attr("disabled", true);
$.ajax({
url: searchAPI + "&Query=Regions",
dataType: "jsonp",
success: function(rows) {
$("#RegionsDropDown>option").remove();
for(var i = 0; i < rows.length; i++)
$("#RegionsDropDown").append("" + rows[i].Region +
" ");
$("#RegionsDropDown").removeAttr("disabled");
}
});
}
function loadCities(regionID) {
$("#CitiesDropDown").attr("disabled", true);
$.ajax({
url: searchAPI + "&Query=Cities&RegionID=" + regionID,
dataType: "jsonp",
success: function(rows) {
$("#CitiesDropDown>option").remove();
for(var i = 0; i < rows.length; i++)
$("#CitiesDropDown").append("" + rows[i].City +
" ");
$("#CitiesDropDown").removeAttr("disabled");
}
});
}
function loadPrices(categoryID) {
$("#PricesDropDown").attr("disabled", true);
$.ajax({
url: searchAPI + "&Query=Prices&CategoryID=" + categoryID,
dataType: "jsonp",
success: function(rows) {
$("#PricesDropDown>option").remove();
for(var i = 0; i < rows.length; i++)
$("#PricesDropDown").append("" + rows[i].Price +
" ");
$("#PricesDropDown").removeAttr("disabled");
}
});
}
function loadSorts() {
$("#SortsDropDown").attr("disabled", true);
$.ajax({
url: searchAPI + "&Query=Sorts",
dataType: "jsonp",
success: function(rows) {
$("#SortsDropDown>option").remove();
for(var i = 0; i < rows.length; i++)
$("#SortsDropDown").append("" + rows[i].Sort +
" ");
$("#SortsDropDown").removeAttr("disabled");
}
});
}
$(document).ready(function() {
loadCategories();
loadRegions();
loadCities(0);
loadPrices(0);
loadSorts();
});