javascript - jQuery UI returning "undefined" for Timepicker add-on in Wordpress -


i attempting utilize trent richardson's timepicker jquery ui plugin add time picking widget wordpress plugin. jquery , jquery ui both enqueued should , working fine (the datepicker/slider requirements timepicker have both been verified included , working timepicker script loading fine).

however, firebug giving me following error:

typeerror: $.ui undefined 

the line in question this:

$.ui.timepicker = $.ui.timepicker || {}; 

i understand it's occurring because reason script isn't finding $.ui (which assume standard notation referring jquery ui?) tried pre-defining $.ui @ top , got rid of undefined error, threw for

$.datepicker 

that further on down in code on line 973. there doesn't seem lot of sense in explicitly defining $.ui , $.datepicker in top of script when should valid references jquery objects... i'm not sure how fix appears broken link.

i ended finding timepicker plugin worked right "out of box" speak. literally changed reference old jquery.timepicker.js new jquery.ui.timepicker.js , working beautifully.

my general intuition/feeling on "old" script might using either outdated or advanced api calling method causing problems jquery's/ui's version.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -