Looking help

Discussion in 'jQuery' started by affuser, Jul 4, 2012.

  1. #1
    Hi i'm looking help in jquery slider. Here i have slider: http://iatlaides.com/Web-2.0-properties.php
    1. I need make possible to enter values in text box and when it is done slider going to exact place itself.
    2. When you slide slider till 900 next in jump to 1100 not on 1000. need to resolve that.
    3. when i change values in script it sometime freezes, you can try to click on slider with mouse 10-20 times and it will freeze. need to resolve that.
    4. check all code to resolve any possible errors.
    No need design.

    I suppose this is easy task. Please send me your offer (price) to PM...
    Looking price around 10$
    Thanks
     
    affuser, Jul 4, 2012 IP
  2. hdewantara

    hdewantara Well-Known Member

    Messages:
    538
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #2
    Probably within your formatPrice() func in jquery.price.js file.

    So instead of this,
    function formatPrice(price) {
        var out = String(Math.round(price * 100) / 100),
            seg = out.split('.');
        if (seg[1].length == 1) {
          return seg[0] + '.' + seg[1] + '0';
        } else {
          return out;
        }
      }
    
    HTML:
    maybe you should use below:
    function formatPrice(price) {
        var out = String(Math.round(price * 100) / 100),
            seg = out.split('.');
        if (seg.length == 1) {
          return seg[0] + '.0';
        } else {
          return out;
        }
      }
    HTML:
    I'm not sure about the rest, sorry. jQuery's object-oriented syntax always brings me headache :)
     
    hdewantara, Jul 5, 2012 IP
  3. affuser

    affuser Member

    Messages:
    133
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #3
    Thanks it helps for freezing. Do not freeze my slider anymore :)

    And also it gives me out value 1000 :)
     
    affuser, Jul 5, 2012 IP
  4. affuser

    affuser Member

    Messages:
    133
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #4
    So i have left only ''1. I need make possible to enter values in text box and when it is done slider going to exact place itself.''
    I need like here http://jsfiddle.net/FPCRb/1/ but i do not need range but like in that fiddle enter value in text box and slider jump to exact place.
    I you can help me with that that would be awesome :)
     
    affuser, Jul 5, 2012 IP