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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:07:22+00:00 2026-05-24T03:07:22+00:00

I have a main page that loads a content of a div: var content

  • 0

I have a main page that loads a content of a div:

    var content = $("#content_layout");
    //some code here
    content.load("claim_form.aspx?claim_no=" + file_number);

The claim_form.aspx has a drop down, and based on that drop down it should show the apropriate input fields. I set the index to be 1 and automatically load the first set of inputs. Here is some code to explain it better:

$("#request_type").change(function(e) {
    index = document.getElementById("request_type").selectedIndex;
    if (index == "0") {
        variable_content(1000);
        hide_all(900);
        show_div("#invoice_payment_button_layout", 900);
        real_index = "1";
    }
    else if (index == "1") {
        variable_content(1000);
        hide_all(900);
        show_div("#void_check_button_layout", 900);
        real_index = "2";
// and so on......

When I load the page for the first time, it works perfectly; however, when I hit F5 or access the page again via url, I see ALL the input fields. As if the index was every singe number….

I’m using IE7 for this (company requirement)…
Can anyone tell me how to fix the problem? So when I hit F5 or access the page again it does not show me all the stuff?

EDIT:
More Code:

//This is the first line
$(document).ready(function() {
//define some variables blah blah
hide_all(1); //I created this function (not sure if one exists so i specify)

then later:

function hide_all(speed) {
    $("#comment_box_layout").slideUp(speed);
    $("#invoice_payment_button_layout").slideUp(speed);
    $("#deductible_recovery_request_layout").slideUp(speed);
//so on with all the divs
}

Maybe it will be easier now?

  • 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-24T03:07:22+00:00Added an answer on May 24, 2026 at 3:07 am

    Have you tried calling the hide_all() method on $(document).ready? It sounds like there is some funny CSS caching, so maybe by always hiding everything when the document is ready, you could set a clean base state.

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

Sidebar

Related Questions

The Idea I have a main PHP page that loads content in DIV's from
I have 2 master pages that are nested.this is main master page code for
I have a page (main.php) which loads content from an external PHP file (rpc.php).
Here's my setup. I'm using .NET: I have a Main.aspx lets call it. That
I have a page that contains a div. I load another page in to
I have a content div that loads different pages. I can't set fixed position
I have a index.php page that is the main page. All pages are included
I have a main page from where I am making a call to load
On my main page I have this jquery code which does an ajax call
I use this code to load the content from a different page into the

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.