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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:47:22+00:00 2026-05-27T06:47:22+00:00

So I have some function that expand and collaps based on hover and click.

  • 0

So I have some function that expand and collaps based on hover and click. The function works fine on the basic test but it’s not working on the site. When a user clicks on the Expand A and Expand B. The outer container expands with it as you can test it in jsFiddle . But when the same code is applied to the main site the outer container doesn’t expand with the expanded div. Instead it has the expanded div if it’s too long. What am I missing here?

Thanks in advance. Rex

P.S. I can’t use the newer version of jQuery or the change the layout. That’s the CMS is set up. However I can change the css properties and the javascript functions.

The jQuery script works fine on the test version: http://jsfiddle.net/rexonms/pXm62/

But it doesn’t work on the site: http://boston.staging.ujcweb.org/expandable-box.aspx

  • 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-27T06:47:22+00:00Added an answer on May 27, 2026 at 6:47 am

    There is a function named adjustLayout in your http://boston.staging.ujcweb.org/js/globalPage.js file which sets height of div#ctl00_ContentPlaceHolder1_supportingElements dynamically. Therefore your boxes can’t push container.

    You can try this; Change the toggle function at bottom of your http://boston.staging.ujcweb.org/local_includes/top-nav.js script to this:

    $("a.trigger").click(function() {
        var $this = $(this),
            $container = $('#ctl00_ContentPlaceHolder1_supportingElements');
        if($this.hasClass('active')) {
            $container.height($container.data('height'));
        }
        else {
            $container.data('height', $container.height()).css('height', 'auto');
        }
        $(this).toggleClass("active").next().slideToggle("slow");
        return false; //Prevent the browser jump to the link anchor
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have some function that receives N random 2D points. Is there any
Does .NET have some type of built in function that allows filtering on Gridviews?
I'd like to write a function that would have some optional code to be
I have some code that uses the Oracle function add_months to increment a Date
I have a function that loads in some XML that looks like this: private
I have a data-upload function that load some data into several tables and processes
I have some third-party Javascript that has statements like this: FOO = function() {
I have a setup function that runs onload to add some behaviours to elements.
I have DLL and application that will call some function in this dll. For
I have some jQuery code that intercepts links clicked on a page: $(document).ready(function() {

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.