Forums

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’ “

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45525
    simmi
    Participant

    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());
    function touchStart(event){
    };
    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.

    #138689
    CrocoDillon
    Participant

    Try

    $(‘#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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.