You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Code doesn't work Created Jul 19, 2010

This thread is solved

Views: 1583     Replies: 2     Last reply Aug 7, 2010  
You must login first before you can use this feature

InetBUG

Posts: 2

Registered:
Jul 19, 2010

Code doesn't work

Posted: Jul 19, 2010

In Opera and WebKit (Safari, Chrome) this code doesn't work - handle enabled, but when I slide him - content don't change. In Firefox all good. Thanks.

P.S. In IE this code work too.


var range = $('.range');
var selectorVar = $('.i .description, .i .service-hide');
range.rangeinput({progress: true});
var api = range.data('rangeinput');
api.setValue(0);
api.onSlide( function () {
	var superVar = api.getValue();
	if (superVar==0) { $('.i .service-hide').hide(); $('.i .description').show(); }
	if (superVar==1) { selectorVar.hide(); $('.i-1').show(); }
	if (superVar==2) { selectorVar.hide(); $('.i-2').show(); }
	if (superVar==3) { selectorVar.hide(); $('.i-3').show(); }
});

doro

Posts: 3

Registered:
Oct 22, 2009

» Code doesn"t work

Posted: Jul 30, 2010

Reply to: Code doesn't work, from InetBUG
i have the same problem with slider api. it works fine in ff and ie7...

InetBUG

Posts: 2

Registered:
Jul 19, 2010

» » Code doesn

Posted: Aug 7, 2010

Reply to: » Code doesn"t work, from doro
I find the answer. onSlide must be here:
var selectorVar = $('.i .description, .i .service-hide');
$('.rangeid').rangeinput({
	progress: true,
	onSlide: function (event, value) {
		if (value==0) { $('.i .service-hide').hide(); $('.i .description').show(); }
		if (value==1) { selectorVar.hide(); $('.i-1').show(); }
		if (value==2) { selectorVar.hide(); $('.i-2').show(); }
		if (value==3) { selectorVar.hide(); $('.i-3').show(); }
	}