This Same issue still occurs for me while using slider with two handles for 
price range. That also occurs in mobile browsers. When I touch and move Max 
price handle I got NaN and the functionality is not working.

Is there any fix for this? The above fix seems not working for me

Regards
Siva

On Wednesday, October 15, 2008 12:46:08 AM UTC+5:30, sbarker wrote:
>
> In script.aculo.us v1.8.1 I'm getting a javascript NaN triggered error 
> in IE6 in the slider.js (Line 143).  Tracking it down with the basic 
> debugger,  I've discovered that offsetX and offsetY values are both 
> NaN when the draw function is called. 
>
> Sounds a lot like this bug: http://dev.rubyonrails.org/ticket/3020 
>
> I haven't studied this all the way through,  and opted to extend the 
> normalizing function, getNearestValue to convert a NaN to a number. 
>
> Basically I've got this as a workaround at line 105: 
>
>   getNearestValue: function(value){ 
> +   if (isNaN(value)) { 
> +       value = 0; 
> +   } 
>     if (this.allowedValues){ 
>       if (value >= this.allowedValues.max()) 
> return(this.allowedValues.max()); 
>       if (value <= this.allowedValues.min()) 
> return(this.allowedValues.min()); 
>
> It seems to me that it makes sense to do this, but it also makes it 
> harder to locate the real bugs when they come up.  I'm just posting 
> this so that someone a little more familiar with this project might 
> take a look. 
>
> Thanks, 
> Jim 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/d/optout.

Reply via email to