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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:47:48+00:00 2026-05-30T02:47:48+00:00

Pardon for this, i just get this error in console but i can’t see

  • 0

Pardon for this, i just get this error in console but i can’t see it? I may be blind at the moment, anyone please helps me get this error fixed?

says: “missing ) after argument list else {“

//run the function for all boxes
$(".box").each(function () {

var thisBox = $(this);
var url = thisBox.href;
var infoBox = $(".info", thisBox);
thisBox.data('height', $(this).height());

thisBox.click(function () {

    if (!thisBox.hasClass("opened")) {
        thisBox.addClass("opened");
        $("img", box).fadeOut("slow", function () {
            infoBox.css({
                "visibility": "visible",
                "height": "auto"
            });

            infoBox.load(url, function () {
                $('.readMore', thisBox).click(function (e) {
                    e.preventDefault();
                    var selector = $(this).attr('data-filter-all');
                    $('#container').isotope({
                        filter: selector
                    });
                    $('#container').isotope('reloadItems');
                    return false;
                });

                $('<a href="#" class="closeBox">Close</a>"').appendTo(infoBox).click(function (e) {
                    e.preventDefault();
                    $("html, body").animate({
                        scrollTop: 0
                    }, 500);
                    $('#container').isotope('reLayout');
                });

                var newHeight = infoBox.outerHeight(true);
                thisBox.css({
                    "width": "692",
                    "height": newHeight
                });

                infoBox.animate({
                    width: 692,
                    height: newHeight
                }, function () {
                    $('#container').isotope('reLayout', function () {
                        Shadowbox.setup();
                        thisBox.removeClass("loading");
                        infoBox.css({
                            "visibility": "visible"
                        });
                        var videoSpan = infoBox.find("span.video");
                        iframe = $('<iframe/>', {
                            'frameborder': 0,
                            'class': 'tide',
                            'width': '692',
                            'height': '389',
                            'src': 'http://player.vimeo.com/video/' + videoSpan.data("vimeoid") + '?autoplay=0&api=1'
                        });
                        videoSpan.replaceWith(iframe);
                    });
                });

            });

        }
        else {
            $(".info").empty();
            $("img", thisBox).fadeIn("slow");
            thisBox.css("width", "230");
            thisBox.height(box.data('height'));
            thisBox.removeClass("opened");
        };

        });
});

});
  • 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-30T02:47:49+00:00Added an answer on May 30, 2026 at 2:47 am

    You have to move one ‘});’ of the bottom before the else:

    //run the function for all boxes
    $(".box").each(function () {
    
    var thisBox = $(this);
    var url = thisBox.href;
    var infoBox = $(".info", thisBox);
    thisBox.data('height', $(this).height());
    
    thisBox.click(function () {
    
    if (!thisBox.hasClass("opened")) {
        thisBox.addClass("opened");
        $("img", box).fadeOut("slow", function () {
            infoBox.css({
                "visibility": "visible",
                "height": "auto"
            });
    
            infoBox.load(url, function () {
                $('.readMore', thisBox).click(function (e) {
                    e.preventDefault();
                    var selector = $(this).attr('data-filter-all');
                    $('#container').isotope({
                        filter: selector
                    });
                    $('#container').isotope('reloadItems');
                    return false;
                });
    
                $('<a href="#" class="closeBox">Close</a>"').appendTo(infoBox).click(function (e) {
                    e.preventDefault();
                    $("html, body").animate({
                        scrollTop: 0
                    }, 500);
                    $('#container').isotope('reLayout');
                });
    
                var newHeight = infoBox.outerHeight(true);
                thisBox.css({
                    "width": "692",
                    "height": newHeight
                });
    
                infoBox.animate({
                    width: 692,
                    height: newHeight
                }, function () {
                    $('#container').isotope('reLayout', function () {
                        Shadowbox.setup();
                        thisBox.removeClass("loading");
                        infoBox.css({
                            "visibility": "visible"
                        });
                        var videoSpan = infoBox.find("span.video");
                        iframe = $('<iframe/>', {
                            'frameborder': 0,
                            'class': 'tide',
                            'width': '692',
                            'height': '389',
                            'src': 'http://player.vimeo.com/video/' + videoSpan.data("vimeoid") + '?autoplay=0&api=1'
                        });
                        videoSpan.replaceWith(iframe);
                    });
                });
    
            });
        });
        }
        else {
            $(".info").empty();
            $("img", thisBox).fadeIn("slow");
            thisBox.css("width", "230");
            thisBox.height(box.data('height'));
            thisBox.removeClass("opened");
        };
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please pardon me if this has been asked before, but I'm wondering if there
Pardon the pun in my title (heh) but this is seriously driving me nuts!
Pardon my complete lack of javascript knowledge in advance, but I can't seem to
I've just started playing around with android, so pardon me if this is a
Pardon me for this long story, but I think the question merits it. I
This may be very obvious question, pardon me if so. I have below code
Pardon me if this is a n00b-ish question but if the shoe fits I'll
Please pardon me if I am asking an obvious question, but after going through
I just started with iOS development, so pardon if this is too simple I
First of all, pardon my hacky code, I'm just trying to try this out

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.