Hi again,
my last guess (which I actually can't see yet in the thread) wasn't
perfectly correct. Try this instead:
if (jQuery.isFunction(jQuery.fn.datepicker)) {
...
}
--
Bohdan Ganicky
Dan Eastwell wrote:
>
>
> Thanks Bohdan,
>
> That sounds like it should work, but
>
> if(jQuery.isFunction(datepicker())){
> $('.invokeBoth').datepicker({showOn: 'both', buttonImage:
> '/images/icons/calendar.png', buttonImageOnly: true});
> }
>
> Throws "datepicker is not defined" (so does
> if(jQuery.isFunction(datepicker)) ). Without the if statement, the
> datepicker works perfectly.
>
> Any more ideas? Is datepicker() actually a function within the
> ui.datepicker?
>
> Thanks,
>
> Dan.
>
> On 1/14/08, Bohdan Ganicky <
besh@centrum.cz> wrote:
>>
>>
>> Hi Dan,
>>
>> try the
http://docs.jquery.com/Utilities/jQuery.isFunction#obj>> jQuery.isFunction(); .
>>
>> --
>> Bohdan Ganicky
>>
>>
>> Dan Eastwell