Forums

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

Home Forums JavaScript iPhone Finger Swipe

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31920
    infocentre
    Member

    Hi guys, wondering if you might be able to help with this.

    I found this jQuery plugin for detecting an iPhone finger swipe.

    It works well bringing up an Alert with this call:

    $('.swipe').swipe({
    swipeLeft: function() { $('#someDiv').fadeIn() },
    swipeRight: function() { $('#someDiv').fadeOut() },
    })

    But what i want it to do is use the link made by next_post_link and previous_post_link in WP and navigate to them accordingly.

    So how would i go about doing that?

    The links to Next and Prev are inside Div’s, but obviously compiled from wordpress PHP calls.

    Cheers guys,
    Alex

    #55854
    infocentre
    Member

    Anyone have any advice on this?

    Thanks

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