NetTalk Central

Author Topic: Slider problem back again  (Read 2857 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Slider problem back again
« on: June 16, 2012, 04:11:41 AM »
Hi,

Am getting an error in the console for the slider control, seems as if a parameter is incorrect .
Below the code and I have attached an image, one from FireFox and one from Chrom

code
jQuery(function() {jQuery("#loc__slider_amt_slider").slider({min:1,max:50,step:1,slide: function(event,ui){$( "#loc__slider_amt").val(ui.value);},change: function(event,ui){$("#loc__slider_amt").change();},value:});});

thanks

Johan







[attachment deleted by admin]

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Slider problem back again
« Reply #1 on: June 16, 2012, 04:28:28 AM »

Hi Bruce

correct - jQuery(function() {jQuery("#loc__slider_amtt_slider").slider({min:1,max:50,step:1,slide: function(event,ui){$( "#loc__slider_amtt").val(ui.value);},change: function(event,ui){$("#loc__slider_amtt").change();},value:0});});

wrong   - jQuery(function() {jQuery("#loc__slider_amtt_slider").slider({min:1,max:50,step:1,slide: function(event,ui){$( "#loc__slider_amtt").val(ui.value);},change: function(event,ui){$("#loc__slider_amtt").change();},value:});});

Found a missing 0 between code.
It is the last value parameter towards the end of the function line.

Not sure what corrects it, but it seems to correct itself as I move between the fields and submit the form.

Johan