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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:30:06+00:00 2026-06-03T16:30:06+00:00

I am trying to add a jquery colorbox to my webpage using the code

  • 0

I am trying to add a jquery colorbox to my webpage using the code below:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
    <link rel="stylesheet" href="colorbox.css" />
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript" src="jquery.colorbox-min.js"></script>
</head>
<body>
    <script type="text/javascript">
        $(function ()
        {
            $(".popup")
            .colorbox({iframe:true, innerWidth:695, innerHeight:340, overlayClose:false });

        })
    </script>
    <a class='popup' href='http://www.bbc.co.uk'>bbc.co.uk</a>
</body>

It works for both firefox and chrome. But when I run it in IE7 I get the following error:

Object doesn’t support this property or method

Any help would be amazing.

  • 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-03T16:30:08+00:00Added an answer on June 3, 2026 at 4:30 pm

    More than likely you have a <script> tag that is invalid or that contains a type attribute set to something other than text/javascript.

    Without seeing that part of the code, we can’t figure out exactly what is wrong.

    More information

    Script tags must have a closing </script>. <script /> will not work in all browsers.

    Additionally, the type attribute must either be text/javascript or not present. If it is application/javascript some versions of IE will not execute it.

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

Sidebar

Related Questions

I am trying to add rows to my repeater using jQuery using below script.It
I'm trying to add an iframe using jquery this way below, but when I
I'm trying to add jQuery using Greasemonkey's @require / @include method, but it doesn't
I'm trying to add some jQuery + ERB to a specific view: views/posts/show.html.erb (top
I'm trying to add some jQuery stuff to Gmail using a GreaseMonkey script. Adding
I'm making Rails 3.1.1 app and trying to add some jQuery code to it.
I'm trying to add values to a table using jQuery - unfortunately, I don't
I am trying to add some slide in/out descriptions to images using jQuery as
am trying to add jQuery Grid into my application(C# and Asp.net) using samples provided
I'm trying to add html around div contents that my jquery function returns after

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.