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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:24:17+00:00 2026-05-29T08:24:17+00:00

I have just finished building a website for client, instantinteriors.com.au . (Visit this site

  • 0

I have just finished building a website for client, instantinteriors.com.au. (Visit this site for source code.)

For some reason, when I view the website in Firefox offline as a file it looks like it should. Upon upload the sizing becomes different, such as the font and div sizes. There is also a failure in some of my scripts to operate.

The website appears to work fine in Safari and Chrome, haven’t checked on a Windows yet. There also seems to be something wrong with the form, as I have everything ready working and testing, although as soon as it went onto the host server the client uses it fails.

The reason I emphasise client’s server is that when I tested it earlier on the host I use it worked fine.

Here is one of many scripts appearing to fail…

 <script type="text/javascript">
     $.fn.hasOverflow = function() {
     var $this = $(this);
     var $children = $this.find('*');
     var len = $children.length;

     if (len) {
       var maxWidth = 0;
       var maxHeight = 0
       $children.map(function(){
        maxWidth = Math.max(maxWidth, $(this).outerWidth(true));
        maxHeight = Math.max(maxHeight, $(this).outerHeight(true));
     });

     return maxWidth > $this.width() || maxHeight > $this.height();
    }

    return false;
    };

  $(function() {
   var $content = $('#wrap4').children().wrapAll('<div>');
   if($content.hasOverflow()){
       $("#arrows").css("display", "none");
   } else {
     $("#arrows").css("display", "block");
   }
 });

 </script>
  • 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-29T08:24:18+00:00Added an answer on May 29, 2026 at 8:24 am

    Is your logic correct? Your hasOverflow function returns true when either your maxWidth or maxHeight is greater than your current width and height. If you have overflow shouldn’t the test be if either the current values are greater than the maximums?

    You should switch the way you use the hasOverflow result so the arrows are shown when you have overflow. You can use the show() and hide() methods as shorthand.

    if($content.hasOverflow()) {
      $("#arrows").show();
    } else {
      $("#arrows").hide();
    }
    

    Is this being called when the document is ready? The source formatting makes it hard to tell.

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

Sidebar

Related Questions

I just finished reading this post: https://developer.yahoo.com/performance/rules.html#flush and have already implemented a flush after
I have just finished a client’s website and now they want to have different
I have just finished my new portfolio site visible at http://www.pepkarsten.com/artdirection . It is
I have something weird going on here. I just finished a site for a
I have just finished building my up from bottom (database) over DAO and business
Sceanario : I have just finished the design for my website and am currently
I'm building a site, and have just started getting into developing the backend. The
I have just finished https://github.com/overtone/overtone/wiki/Getting-Started which is fantastic. Now, I would like to do
I just finished my cc.net configuration for getting the code from svn, building it
I am learning spring mvc and hibernate. i have just finished simple site with

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.