× If you report a bug please specify the joomla and component version.

normal [REJECTED] jQuery

9 years 2 months ago #1134 by radekolbas
Replied by radekolbas on topic Re: [REJECTED] jQuery
its not online by you. u can use minmaxb_custom.php. There u have
function Dataminmaxb_customMenu(&$dataitems,&$params) {
$dataitems=modDatamenuHelper::getMinMax($params);
$mini=$dataitems[0];
$maxi=$dataitems[0];
$min=round($mini,0);
$max=round($maxi,0);

and so u can use min and max variable to set it in your javascript, like:
$( "#slider-range" ).slider({
range: true,
min: <?php echo $min; ?>,
max: <?php echo $max; ?>,


  • Posts: 33
  • Thank you received: 3

  • Gender: Unknown
  • Birthdate: Unknown
  • The following user(s) said Thank You: mackelito

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

    9 years 1 month ago #1135 by mackelito
    Replied by mackelito on topic Re: [REJECTED] jQuery
    Thanks alot!
    I´ll try it out tonight! :)


  • Posts: 174
  • Thank you received: 4

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in or Create an account to join the conversation.

    8 years 9 months ago #1747 by Dimona
    Replied by Dimona on topic Re: [REJECTED] jQuery
    Hi mackelito, I see you got the price slider working on you're site, it looks great. Can you give me some tips how to get it working?

    Thank you


  • Posts: 3
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in or Create an account to join the conversation.

    8 years 9 months ago #1772 by mackelito
    Replied by mackelito on topic Re: [REJECTED] jQuery
    Hey!

    Sorry for the late reply!... have been soooo busy! :P

    The slider works but not that good... I will change to this one asap, ghusse.github.com/jQRangeSlider/index.html?utm_expid=40713345-0


  • Posts: 174
  • Thank you received: 4

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in or Create an account to join the conversation.

    8 years 9 months ago #1773 by Dimona
    Replied by Dimona on topic Re: [REJECTED] jQuery
    Thank you for the reply.

    What file did you use to start with? The search.php file? I'm fighting for days to get things working. This new jQRangeSlider looks very nice!!!


  • Posts: 3
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in or Create an account to join the conversation.

    8 years 9 months ago #1793 by mackelito
    Replied by mackelito on topic Re: [REJECTED] jQuery
    I started by making a new "price-slider.php" file (in my "html" folder in my template structure.
    <?php // no direct access
    #
    # Copyright brambring.nl
    # https://www.affiliatefeeds.nl
    # joomla@brambring.nl
    #
    # file modules/mod_datamenu/tmpl/minmaxb_custom.php
    
    defined( '_JEXEC' ) or die( 'Restricted access' );
    ?>
    
    <div class="module">
    	<div class="mod_datamenu" style="text-align:center">
    		<div class="price-rage">
    			<div class="price-rage-right">kr</div>
    			<div id="highValue">30000</div>
    		</div>
    		<div class="price-rage">
    			<div id="lowValue">0</div>
    			<div class="price-rage-left">kr</div>
    		</div>
    		<div class="sliderbar">
    		</div>
    		<input type="hidden" id="itemid" name="Itemid" value="<?php echo $params->get('id');?>" />
    	</div>
    </div>

    And then I added some js code to my template that checks for the max and min values and resubmits the form :)


  • Posts: 174
  • Thank you received: 4

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in or Create an account to join the conversation.

    Time to create page: 0.151 seconds