The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › jquery error “Object .sliderImage has no method ‘apply’ “
i have image slider code which was not working on android tablet . but after adding following line it started working on android also.
$(‘#myImageFlow ‘).on(“click touchstart”,”.sliderImage”,touchStart());
but this is giving Error::
Uncaught TypeError: Object .sliderImage has no method ‘apply’,
touchstart() i don’t need but , instead of that if i am giving false then my slider is not working on android.
$(‘#myImageFlow ‘).on(“click touchstart”,”.sliderImage”,touchStart);
you want to give a reference to the function as parameter, what you’re doing with parentheses `touchStart()` is running the function and giving the return value as parameter.