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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:32:57+00:00 2026-06-13T09:32:57+00:00

I keep seeing the following error when I attempt to launch a lightbox: Error:

  • 0

I keep seeing the following error when I attempt to launch a lightbox:

Error: Syntax error, unrecognized expression: /Images/designs/start-large.jpg
  [Break On This Error]     

throw new Error( "Syntax error, unrecognized expression: " + msg );

jquery.js (line 4679)

I am using the Colorbox Script. Here is my code:

HTML

<figure>
    <img src="/Images/designs/start.jpg" alt="Old Start Page"> 
    <dl>
        <dt class="strong">Purpose</dt>
            <dd>Original Website Opening</dd>
        <dt class="strong"><a href="/Images/designs/start-large.jpg" class="colorbox">Enlarge</a></dt>          
    </dl>
</figure>

JS

$(function() {
   $('.colorbox').colorbox();
});

I am not sure what is wrong with my code, when I click the link the lightbox opens but just shows an ajax spinner image. I have an inline element hidden on the page that opens correctly using the same exact code above (except the link is href="#hidden-div").

What could be causing this error and how do I solve the problem?

Note: I am using jQuery 1.8.2 and Colorbox 1.3.20.1

EDIT

Here is additional code on my site:

$(function() {

    $('#reload').click(function() { 
location.reload(); //Reloads Page
 });

    $('.slideshow').cycle({
    fx: 'fade',
    timeout: 5000 //Cycles Photos using jQuery Cycle Lite Plugin
});

//Original Code for Colorbox: $('.colorbox').colorbox(); 

$('.colorbox').colorbox({ //Current Colorbox Code
    inline: true
});

});

EDIT 2

Here is a JS Fiddle Note: My code to call Colorbox is at the bottom of the JS Panel.

  • 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-13T09:32:58+00:00Added an answer on June 13, 2026 at 9:32 am

    I have found a workaround for this issue that involves adding extra code, not perfect but it does work.

    Here is the code:

    HTML

    <a href="#lightbox1" class="colorbox">Show Lightbox</a>
    
    <!-- Inserted before </body> tag -->
    <div class="hide">
     <div id="lightbox1">
      <img src="path.jpg"> 
     </div>
    </div>
    

    JS

    $(function() {
      $(".colorbox").colorbox({
          inline:true
      });
    });
    

    CSS

    .hide{
      display: none;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep seeing the following syntax when looking at C# code (using .NET 4.0
I keep seeing references to _internal in examples like the following: class Symbol {
I'm trying to run a Java Jetty application and I keep seeing this error:
While trying to learn Unity , I keep seeing the following code for overriding
I keep seeing these errors in our error log. Any ideas how i can
I keep seeing what appears to be a memory leak - but I can't
I keep seeing documentation saying that its not possible to send to a remote
I keep seeing errors in the Dev Server console log about the Datastore Admin
I am keep seeing such errors but the xcode never shows the line that
I am maintaining some legacy Visual Basic ASP code and I keep seeing <%

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.