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

  • SEARCH
  • Home
  • 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 1001083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:36:48+00:00 2026-05-16T07:36:48+00:00

I am using Colorbox 1.3.6 with jQuery 1.4.2. Somehow the folowing code did not

  • 0

I am using Colorbox 1.3.6 with jQuery 1.4.2. Somehow the folowing code did not work for me:

$(document).ready(function() {
    $.colorbox({href: "something.htm", open: true});
});

which won’t show up automatically, but this one works:

$(document).ready(function() {
    $("#some_element").colorbox({href: "something.htm", open: true});
});

I tried attaching to $("head") which also works! And then I checked the generated elements, it seems that colorbox just added class="cboxElement" to head element and other things all in the body.

But I do not sure if this is a good way to do it (auto popup when the page is loaded) and I can’t figure out why $.colorbox did not work!

Please help!

  • 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-16T07:36:48+00:00Added an answer on May 16, 2026 at 7:36 am

    The problem is that the documentation you’re seeing is for a newer version, not 1.3.6 that you’re using. To do what you want with 1.3.6, try this instead this:

    $(function() {
      $.fn.colorbox({href: "something.htm", open: true});
    });
    

    If you look at version 1.3.6, you’ll see this in the source:

    cboxPublic = $.fn.colorbox = function (options, callback) {
    

    It’s not until this commit for 1.3.7 that $.colorbox shows up:

    cboxPublic = $.fn.colorbox = $.colorbox = function (options, callback) {
    

    So $.colorbox() does work…but only for version 1.3.7+, as of the time of this answer the current version is 1.3.9, so if you want to use $.colorbox() instead of $.fn.colorbox() just upgrade 🙂

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

Sidebar

Related Questions

I am using colorbox a jquery plugin to emulate modal window which is not
I am working on a secure site, https. I am using the colorbox jquery
I'm using jQuery ColorBox to display a shopping cart item. When a user enters
I am using the jQuery plugin Colorbox for some images on This page .
I'm using the colorbox plugin for jQuery. I know I don't have to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
I have a website that uses ajax jquery and colorbox. Inside the div #content
I am using ColorBox to show details of events on a calendar. The address
Has anyone got EclipseLink MOXy (I'm using eclipselink 2.1.0) to work with Java 5?

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.