I want to develop a price filter
in magento 1.9
and i have done this which is not working.
<div class="price_range_caption">
<span class="currency_from">Rs.</span><span id="price_range_fromprice" >1250</span><span id="price_range_toprice">6600</span><span class="currency_to">Rs.</span></div>
<script type="text/javascript">
var slider = create_price_slider(170, 0, 170, 1250, 6600,"price");
window.onresize = function() {
var url = window.location.href;
var pa = document.getElementById("price_range_fromprice").innerHTML;
var pb = document.getElementById("price_range_toprice").innerHTML;
window.location.assign(url+"&price="+pa+"-"+pb);
};
</script>
Url us generating ok i have tested it but ONRESIZE function is not working.