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 7797589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:43:59+00:00 2026-06-01T23:43:59+00:00

My question is in the title : How can I open a jquery fancybox

  • 0

My question is in the title :
How can I open a jquery fancybox (http://www.fancybox.net/) with a dblclick event ?

Thank you in advance for your response 🙂

edit :
I tried that but it doesn’t seems to work and I don’t really know why :

$("#id").dblclick(function(){

    $("#id").fancybox({
        ...
    });
    $("#id").click(); //Trigger click to open the fancy because dblclick doesn't open the fancy
    $("#id").unbind('click.fb'); //unbind the click fancybox event

});

The idea was to handle the fancy box when a dblclick is trigger, then trigger a click to open the fancy and then unbind the click.fb event to prevent the fancybox to open when a single click is trigger by the user.
Unfortunately, the unbind(‘click.fb’) doesn’t seems to work.

  • 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-06-01T23:44:01+00:00Added an answer on June 1, 2026 at 11:44 pm

    I’m not sure if I totally get the question, but try this:

    $('button').dblclick( function() {
        $.fancybox({
            href: '#fancybox'
            // other options here
        });
    });
    

    No need to unbind anything.

    EDIT: Here is a jsfiddle example.

    http://jsfiddle.net/abqTD/3/

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

Sidebar

Related Questions

My question is not clear at title [i can not write it exactly] e.g
Well, question is in title. Is it possible at all? I can use css
the title already tells the question: you can successfully call the Print-Method on a
The title pretty much asks the whole question - How can I clear ONLY
Straightforward question here and I can't make it any simpler than the title: How
Javascript and jQuery (Fancybox) question I'm using the Javascript function below for Twitter sharing
Pretty long question; How can I do the following in C#: Open a web
I have the following ASPX page: <html xmlns=http://www.w3.org/1999/xhtml > <head runat=server> <title></title> <script src=js/jquery-1.2.6.min.js
The question title is a bit strange because I'm not exactly sure how to
I guess the question title sums it up. Is there a time when it

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.