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

The Archive Base Latest Questions

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

I have a simple html/css webpage: www.eveo.org All my content is located in my

  • 0

I have a simple html/css webpage: http://www.eveo.org

All my content is located in my “content” div, 400px tall, and 960px wide. How could I update my content into that div without actually refreshing the web-page?

  • 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-24T21:29:16+00:00Added an answer on May 24, 2026 at 9:29 pm

    Adding onto the jQuery aspect, here’s an example where I do that very thing.

    I have on my page a link which opens a container which is absolutely positioned where you clicked with your mouse, in this container is the contents of the link you clicked on. There’s a lot more code than What I’m showing here which performs my specific task, but this should be abstracted enough for you to use.

    Live Demo: http://wecodesign.com/demos/stackoverflow-7071545.htm

    <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'></script>
    <script type="text/javascript">
    function updateContainer( url ) {
        dynamicCon = '#dynamicContainer';    
        ObjTag = $( dynamicCon );
        ObjTag.load( url );
    }
    $( document ).ready( function() {
        $( 'a[rel="dynamicLoad"]' ).bind( "click", function( event ) {
            url = $( this ).attr( 'href' );
            updateContainer( url );
            event.preventDefault();
            event.stopPropagation();
        });
    });
    </script>
    
    <ul>
        <li><a href="stackoverflow-7071545-1.htm" rel="dynamicLoad">Page 1</a></li>
        <li><a href="stackoverflow-7071545-2.htm" rel="dynamicLoad">Page 2</a></li>
        <li><a href="stackoverflow-7071545-3.htm">Page 3 (Will not dynamic load)</a></li>
    </ul>
    <div id="dynamicContainer"></div>
    

    In case you’re not familiar with jQuery, I’ll explain a few things

    • jQuery is a library that makes developing JavaScript apps a lot easier, and it’s tested cross-browser, I’ve included Google’s publicly available version so I don’t have to host it, This will make the page load faster because users most likely have this Google version cached.
    • In my updateContainer() function, I specify the container using jQuery selector syntax, then I put it into a jQuery tag $() so it becomes an object that I can then manipulate. I then use load to dynamically update it with the url that was passed to the function.
    • $(document).ready(function() {} ); is a pretty universally used thing in jQuery, it basically says, run what’s in the curly braces when the document is ready.
    • I put a rel=”dynamicLoad” on the anchor tags I want to affect, I do this because you may not want all links to load dynamically into this container. what the selector a[rel="dynamicLoad"] does is finds all anchor tags with this rel tag attribute and modifies them with the code I specify.
    • I grab the url and send it to the updateContainer() function, then I run event.preventDefault() and event.stopPropagation() to stop the link from doing what it normally does by default, which is to open the page, you’ll notice that I passed “event” into the function call.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple HTML page with svg like this: <div id=plan> <svg xmlns=http://www.w3.org/2000/svg version=1.1>
So I have a simple page: www.kensandbox.info/centerthis This is a simple html/css page and
This is probably a basic html/css question... I have a simple one-button form that
I have HTML + CSS text. I need some lib with simple function like
I have defined a fieldset in HTML, and applied the following (simple) CSS rules
I have some very simple HTML: <div id=advisor> <div id=print_this_container> <form> <input type=button value=
I have a simple html/css-only static website on which I would like to add
I have built a website using php and simple HTML/CSS for a client. In
I have a simple HTML/CSS list that is displayed inline. I am using a
I have a simple html page with a rather simple css , and it

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.