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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:03:43+00:00 2026-05-22T18:03:43+00:00

I am using jquery colorbox for confirmation window before delete users. But user click

  • 0

I am using jquery colorbox for confirmation window before delete users. But user click on this link befire page loding, it will take to new page(not popup). can you help me

<a class="delete" href="member/remove/{$result['user_id']}">Remove</a>

$(document).ready(function() {
    $('.delete').colorbox({innerWidth:"480px", innerHeight:"170px", iframe:true});

});
  • 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-22T18:03:44+00:00Added an answer on May 22, 2026 at 6:03 pm

    I’d use the following trick to avoid early (i.e. before $(document).ready()) clicks:

    In your anchors, use the rel attribute instead of href for storing the target url, like this:

    <a class="delete" href="#" rel="member/remove/{$result['user_id']}">Remove</a>
    

    Pass a custom “href” function to colorbox, that will return the anchor’s rel attribute instead of the href value:

    $('.delete').colorbox({
        innerWidth:"480px",
        innerHeight:"170px",
        iframe:true,
        href: function() {
            return $.colorbox.element().attr('rel');
        }
    });
    

    This will result in kind-of-disabled links before the colorbox is loaded. I.e. if your users click too early on these links, no action will be taken.

    Is this what you needed?

    Working example here: http://jsfiddle.net/ce7a4/2/
    (Colorbox will be bound to the link only 5 seconds after page load. Clicking the link before will result in no visible action)

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

Sidebar

Related Questions

I am using the jQuery plugin Colorbox for some images on This page .
i am using jQuery colorbox plugin. it is true with asp.net page but not
I'm using jquery colorbox to popup user accounts in a window. I also have
I am using jquery colorbox to load images/ videos. But I have this vimeo
I'm using jQuery ColorBox to display a shopping cart item. When a user enters
I'm using the jquery plugin ColorBox . I have a page with several item
I am using colorbox a jquery plugin to emulate modal window which is not
Using colorbox: http://colorpowered.com/colorbox/ Im using this to open a window up using the iframe
I am using JQuery colorbox like that: There is a link(with a button) that
I'm using a jQuery plugin called Colorbox (http://colorpowered.com/colorbox/) and loading content via Ajax. This

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.