NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JohanR on June 16, 2012, 04:11:41 AM

Title: Slider problem back again
Post by: JohanR 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]
Title: Re: Slider problem back again
Post by: JohanR 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