Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6061481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:56:34+00:00 2026-05-23T08:56:34+00:00

I have a problem with jquery plugin called quikflip. Basically, the plugin flips an

  • 0

I have a problem with jquery plugin called quikflip. Basically, the plugin flips an image with a flipping effect like turning cards. I’m using it to flip a list of images of cards i have 20 cards, it’s working good, but i want to flip 3 cards only and stop show alert and go to the next url.

I’m new in jquery and dont know how to make it, I tried to make counter but no success.

here is what i tried :

function count() {
  var n = $('quickFlip').length;
  if(n > 3){
   Alert('only 3' );
  }
  else {
   $('.quickFlip').quickFlip();
  //
  }
}

$('.quickFlip').click(countChecked);

the function of the plugin is called like this :

$(function() {
    $('.quickflip').quickFlip();
});

the code of the plugin is here http://jonraasch.com/blog/quickflip-2-jquery-plugin.

I just copied exactly the code and no alert has been shown. I have another script which send with ajax ids of the div every time is clicked the card i dont khnow if it is interfering with my code that send infos:

 <script> $(document).ready(function(){ $(".element").click(function () {


    var cururl = document.location.href;
     var path = $(this).attr('title') ; 
    var cardid = $(this).attr('id') ;
     $.get('ajaxprocess.php', {Path: path,url: cururl,cardid:cardid}, function(data){ 

    $('#test').text(data);});
    });
    }); 
    </script>

and the elements are like is

<div class="quickFlip"> <div class="element" id= "id" title ="title">
<a href="#" class="quickFlipCta"> </a>
</div>
 the code for fliping is now like
 <script type="text/javascript">
 $(function() { $('.quickflip').quickFlip(); }); 
$(function() { 
var timesFlipped = 0; 
var threshold = 3; $('.quickflip').quickFlip().click(function() {
 if(timeFlipped++ >= threshold) { alert("Redirecting"); // do more stuff }});
}); 
</script>

what am i doing wrong ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:56:34+00:00Added an answer on May 23, 2026 at 8:56 am

    Without having looked at the plugin’s code, I think the most easy solution is to bind another .click() event to your $('.quickflip'), keeping track of how many times the user has ‘flipped’, and doing something after n amount. Like:

    $(function() {
    
       var timesFlipped = 0;
       var threshold = 3;
    
       $('.quickFlip').quickFlip().find('.quickFlipCta').click(function() {
             if(++timesFlipped >= threshold) {
                alert("Redirecting");
                // do more stuff
             }
          });
    });
    

    Basic working example: http://jsfiddle.net/sMYzS/8/

    Some more info:

    $('.quickFlip').quickFlip(); doesn’t actually do seem to do the flipping, it just sets up the flipping functionality (binding events to your container, etc). So your

    else {
       $('.quickFlip').quickFlip();
    }
    

    seems to be the wrong approach. Basically what you are doing when your function gets invoked is

    if there are more than 3
       alert something
    else 
       initialize the quickflip functionality
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a JQuery Plugin called lightbox (which is great btw). Problem is,
I am using a jQuery plugin called: jqtransform This plugin uses JavaScript to apply
I'm working with jQuery and a plugin called jQuery.SelectBox I have 3 selectboxes, selecting
I am using a JQuery plugin to render a calendar ( http://arshaw.com/fullcalendar/ ). Problem
I have a custom developed WordPress plugin that is using jQuery 1.4 and for
i have a problem in 'News ticker' jquery plugin. when i mouseover the news
I made my first jQuery plugin attempt, but I have this problem/bug which I
I'm using the Edit-in-Place JQuery plugin, JEditable: http://www.appelsiini.net/projects/jeditable . I would like to use
I have been using jquery validate plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ . It has been working successfully,
I am using jQuery Address Plugin and I have the following code. $.address.change(function(e) {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.