Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS onclick not working in ipad

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

    i have written this code for onClick in ImageSlider it is working fine in browser on pc but not working in ipad??

    what to do ??

    Note::

    image is divElement,name i have not edited to div because that was image slider i changed into div slider?? in image slider on click was working fine..


    switch ( image.i == my.imageID )
    {
    case false:
    image.onclick = function() {
    //$('.slideDiv').removeClass('imgnew');
    alert('each time called'+image);
    my.glideTo(this.i);};
    break;

    default:
    this.zIndex = my.zIndex + 1;
    if(image.url !== '')
    {
    image.onclick = my.onClick;

    }
    break;
    }
    image.style.zIndex = my.zIndex;
    }
    }

    #137847
    TheDoc
    Member

    You might want to look into utilizing `touchend` for touch devices.

    #137872
    Willson
    Participant

    Do you have mobile specific meta tags at the top?(viewport/content width) I believe as of a recent iOS update (iOS 6.something), if the page has mobile meta tags, it will not recognise click events. You may want to do as TheDoc recommended and look in to touch events.

    Saw Remy Sharp tweet about this yesterday:
    https://twitter.com/rem/status/342257588513165312

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