Giter Club home page Giter Club logo

Comments (9)

supasheva avatar supasheva commented on July 29, 2024

Have you been able to solve this issue? When you say you don't seem to be able to create more than 1 Jtinder slider what scenario are you talking about?

from jtinder.

melledijkstra avatar melledijkstra commented on July 29, 2024

It's a long time ago since I posted the question.

But I had a problem instantiating multiple jTinder objects. When you would swipe the first one the second jTinder slider would also react to that function. Easy said, the 2 jTinder sliders were actually 1 and wouldn't react apart from each other.

But maybe it has been fixed now :?

Like this:

$("#first_jTinder").jTinder({
    onLike: function (item) {
        // this also triggers the second onLike jTinder slider
    }
});

$("#second_jTinder").jTinder({
...
});

from jtinder.

haveabyte avatar haveabyte commented on July 29, 2024

MelleDikstra, I'm also interested in a solution to this.

from jtinder.

haveabyte avatar haveabyte commented on July 29, 2024

@melledijkstra I figured it out. If you still need it, let me know.

from jtinder.

melledijkstra avatar melledijkstra commented on July 29, 2024

@haveabyte Good job!
But I don't need it anymore. Thanks anyway!

from jtinder.

thomhos avatar thomhos commented on July 29, 2024

Can you guys comment on how this was solved?

from jtinder.

daybaryour avatar daybaryour commented on July 29, 2024

@haveabyte Can you help post on how you were able to resolve this? thanks in advance

from jtinder.

thomhos avatar thomhos commented on July 29, 2024

I was able to solve this, ill try to post some help tomorrow or this week.

*EDIT: This actually has to do with the 'this' context in this plugin. It's always referring to the first object you created. Use the proper context and you'll be fine.

from jtinder.

haveabyte avatar haveabyte commented on July 29, 2024

I actually posted this up to a URL to work on it and kind of forgot about it. So I don't remember how it all works, but if anyone wants, go grab the code from the page and try to figure out what the heck I actually did. :)

http://swipe.haveabyte.com/

from jtinder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.