0

I have a problem with anytime.js ; The input field exists

<input type="text" value="" name="step_dimension_value" >

this is how i called the plugin:

jQuery('input[name="step_dimension_value"]').AnyTime_picker({ 
    format: "%H:%i", 
    labelTitle: "Hora",
    labelHour: "Hora", 
    labelMinute: "Minuto" 
});

The error is (from Firebug console):

" TypeError: off is null [Break On This Error]
var left = off.left; " in anytime.js?ver=1 (line 3062)

can you please help me ?

* EDIT *

I think i have the answer:

In my opinion there is a problem in the anytime.js datepicker; Fortunately it can be very easily worked around.

How to reproduce: - If the call to anytime picker is done using jquery selector, (Like : jQuery('input[name="step_dimension_value"]').AnyTime_picker(....)) and the input does not have an id, the error will happen;

Workaround: - add an id to the input element; I tested it and this works.

4

1 回答 1

1

这不是错误,而是设计使然,并且在项目主页末尾附近的故障排除提示中提到:

www.ama3.com/anytime/#fixBehavior

于 2013-03-31T15:55:13.737 回答