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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:38:48+00:00 2026-06-06T04:38:48+00:00

I have div class=contentBlock which is treated as the container for updating <div class=contentBlock></div>

  • 0

I have div class="contentBlock" which is treated as the container for updating

 <div class="contentBlock"></div>

I have a script that I wrote that doesnt work :c

$(document).ready(function(){
  $('.postLink').on('click', function () {
    $.get("page.php", function (data) {
      $(".contentBlock").html(data);
    });
  });
});

I have a anchor html

<div class="box"> 
  <a class="postLink" "href="#">
    <h1 title="Light me up"></h1>
    <div class="innerbox">
      <figure><img src="http://cpsr-rspc.hc-sc.gc.ca/PR-RP/servlet/ShowImage?photoId=1789" /></figure>
      <ul class="categorySelect">
        <li class="print"></li>
        <li class="video"></li>
        <li class="web"></li>
      </ul>
    </div>
  </a> 
</div>

The page.php is just an img tag amd some lorem.

I’ve never worked with .get() I’m sure I’m using it incorrectly. Additionally, where would I add a transition for a loading .gif and a fadein when loaded?

  • 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-06T04:38:49+00:00Added an answer on June 6, 2026 at 4:38 am
    <a class="postLink" "href="#">
    

    Should be

    <a class="postLink" href="#">
    

    You had an extra quote.

    $(document).ready(function(){
      $(".postLink").on('click', function () {
         // load in animation.gif here
         $(".contentBlock").load("page.php", function() {
             // end loading animation now
         });
      });
    });
    

    Using a load in jQuery is meant for exactly this purpose.

    Here’s the jQuery doc for load: http://api.jquery.com/load/

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

Sidebar

Related Questions

I have an image <div class='container'> <img src='../images.jpg' alt='images' /> </div> I want to
I have a div (with class triggers) with the images and that div is
I have a div with a class of 'card', which is also draggable() with
I have a div class that looks something like this: <div class=objects> X </div>
I have div container and inside couple div with class demo and gravity like
I have a div that changes class depending on where the user is on
I have a div like : <div class='class'> I notice that div.class handles this
Is it possible to have a div.class different based on a class that is
I have a div container that is 600px wide and 30px high, and it
I have div class called .stage which is a stage of a questionnaire <div

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.