Интегрировать с Ion.RangeSlider

More
6 years 1 month ago #7587 by Артем
Здравствуйте!

Можете подсказать пример правильной интеграции в фильтр слайдера с ползунками (range)?

Есть способ отправки значений в инпуты фильтра, но собственно фильтрация не происходит.

Вот пример: jsfiddle.net/IonDen/r5aox84v/

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7590 by JoomLine
Пример рабочего сайта укажите. В целом судя по примеру, который у вас приведен, достаточно в шаблон добавить

<div class="range-slider">
<input type="text" class="js-range-slider" value="" />
</div>
А поля от и до оберунть в див <div class="range-slider">
<input type="text" class="js-range-slider" value="" />
</div>
<div class="extra-controls">
</div>
а непосредственно к инпутам добавить классы js-input-from js-input-to

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7592 by Артем
Спасибо за ответ.

Значения передаются в инпуты, но сам фильтр не срабатывает. Фильтр работает только если вручную вводить значение в инпут (фильтр ajax).

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7593 by JoomLine
А не в режиме аякс срабатывает по кнопке?

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7594 by JoomLine
Скорей всего аякс событие не реагирует на изменения сделанные в поле скриптом.

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7595 by Артем
С кнопкой не хотелось бы делать.

А во втором случае есть решение?

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7596 by JoomLine
Для начала надо понять по кнопке значения правильные или нет :-) Если правильные то надо уже думать над аяксом.

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7597 by Артем
Да, с кнопкой все работает корректно

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7598 by JoomLine
Ссылка на страницу сайта есть где это все делается?

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7599 by Артем

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7600 by AlekVolsk
попробуйте альтернативные решения, например очень удобный и легкий refreshless.com/nouislider/
хорошо документирован, с кучей примеров

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #7603 by Артем
Alek Volsk, спасибо за наводку, но как правильно настроить этот скрипт на работу с ajax я так и не понял.

Joomline Support, может есть какие мысли как настроить ajax для полученных значений от ползунков?

Please Log in or Create an account to join the conversation.

More
6 years 4 weeks ago #7638 by JoomLine
Я признаться попробовал этот слайдер интегрировать в реинж)) и он у меня вообще не заработал ни под каким соусом :-)

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • After searching the house and finding nothing, Sam...
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock. After searching the house and finding nothing, Sam decided to try the key on the garden gate. To his surprise, the key fit perfectly. With a turn of the key and a creak of the hinges, the gate slowly swung open. Inside the garden, Sam was greeted by a sight of wonder. The garden was overgrown but full of vibrant flowers, exotic plants, and a small, sparkling pond. In the middle of the garden stood a beautiful stone statue of a unicorn. As Sam explored further, he discovered a small plaque next to the statue. It read: "To whoever finds this garden, may you always find joy in the beauty of nature and the magic of discovery." Sam spent hours in the garden, exploring every corner and marveling at the hidden beauty. The garden seemed to have a magical quality that made Sam feel at peace and incredibly happy. From that day on, Sam made it a habit to visit the garden every day, taking care of it and sharing its beauty with his friends and family. The once-forgotten garden became a place of joy and wonder for everyone who visited. And so, Sam learned that sometimes, the greatest treasures are not just the secrets we uncover but the beauty and joy we find in them.
    • In Component / Afisha Joomla
    • how to get sponsored for running
    • <!--td {border: 1px solid #cccccc;}br {mso-data-placement:same-cell;}-->I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. <!--td {border: 1px solid #cccccc;}br {mso-data-placement:same-cell;}-->
    • In Component / JL Weather
    • One day, a curious boy named Sam moved i
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock. After searching the house and finding nothing, Sam decided to try the key on the garden gate. To his surprise, the key fit perfectly. With a turn of the key and a creak of the hinges, the gate slowly swung open. Inside the garden, Sam was greeted by a sight of wonder. The garden was overgrown but full of vibrant flowers, exotic plants, and a small, sparkling pond. In the middle of the garden stood a beautiful stone statue of a unicorn. As Sam explored further, he discovered a small plaque next to the statue. It read: "To whoever finds this garden, may you always find joy in the beauty of nature and the magic of discovery." Sam spent hours in the garden, exploring every corner and marveling at the hidden beauty. The garden seemed to have a magical quality that made Sam feel at peace and incredibly happy. From that day on, Sam made it a habit to visit the garden every day, taking care of it and sharing its beauty with his friends and family. The once-forgotten garden became a place of joy and wonder for everyone who visited. And so, Sam learned that sometimes, the greatest treasures are not just the secrets we uncover but the beauty and joy we find in them.  
    • In Component / JL TV
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.