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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:05:44+00:00 2026-06-14T01:05:44+00:00

I have created a jQuery window scroll-bar detector but when I re-size the browser

  • 0

I have created a jQuery window scroll-bar detector but when I re-size the browser window, in-turn changing the scroll-bar status, either from visible to not visible or vice-versa, the status notifier remains static. How can I keep the status notifier continuously updated on every re-size in a simple way without AJAX calls, via strictly javascript?

For further context, I am basically trying to come up with a solution for semi-infinite-scrolling if the content dosn’t exceed the window size. If one of you guys figures this out it will be very benifical for a lot of UI developers trying to incorporate the highly demanded and popular load-on-scroll effect. Thanks in advance. Here is my demo.

$(window).resize(function () {

    ///????

});
  • 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-14T01:05:44+00:00Added an answer on June 14, 2026 at 1:05 am

    You can use so-called functions to achieve this. In Javascript, functions are actually objects and can be simply stored in variables and passed around as parameters.

    Take this example:

    //first define your function - maybe give it a better name than I did :)
    var detectScrollbar = function () {
        if($(window).height() >= $(document).height()){
            $('#statusNotifier1').fadeIn("slow");
            $('#statusNotifier2').hide();
        }
        else
        {
            $('#statusNotifier1').hide();
            $('#statusNotifier2').fadeIn("slow");
        }
    };
    
    //call it initially
    detectScrollbar();
    
    //pass it to .resize() so it will be called when the event fires
    $(window).resize(detectScrollbar);
    

    You could put this whole thing into your $(document).ready();.

    Have fun with the jsFiddle Demo. I hope all those sad UI developers will be dancing around with smiles on their face, celebrating :).

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

Sidebar

Related Questions

I have created a slideshow widget, using jQuery.UI widgets that works with window.setInterval. I
I have created a website loading progress bar using Jquery UI Progress bar. This
I have created webpage and I am calling it from Jquery function. Technically I
I have created one user control to pick date from calendar. I used jquery
I have created jquery image slider and it is working good. However i have
I have created some JQuery that will expand a div 'popup' on hover and
I have created a jQuery animation that can be seen by clicking the Preview
I have created custom jQuery UI widget called uiPopover, very similar to UI-dialog (in
I have created a jquery plugin to expand/collapse ul,li something like a accordion menu
Suppose I have created one jQuery function to check if elements exist or not

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.