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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:00:52+00:00 2026-06-16T15:00:52+00:00

I am using AJAX and sending post. in the response 200 Ok I can

  • 0

I am using AJAX and sending post.
in the response 200 Ok I can see that I am able to see the div I want. but that data is replaced but is getting appended.
can you please guide me how t debug these type of issues and fix them.

request.done(function(response) {
alert('Loaded.');
$('#data1').html(response);
});

I am able to see that “Loaded” alert is coming . so it is done.
on firebug I can see the 200 OK with the data.

1) #data1 is a Javascript template.
so, I am trying to update that template which will trigger the data in the tables and all to be modified.

data is :

<divid='data1'>
<script> ...................</script>
</div>

so I see that data getting updated . but the old data is not getting removed.
I tried : replaceWith
with that also , it is only appending the page and not replacing it

=

This Div is a Javascript template.
so this div as:

<div id='data1'><script> .....</script></div>
  1. on my browser data is always getting updated and not replaced.
  2. one more basic question , if I get response it is appending the data . when I see the viewsource, even the display shows example 20 entries . it shows only 10 entries which are initial , wit Ajax when a response is received will the source does not get modified?
  • 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-16T15:00:53+00:00Added an answer on June 16, 2026 at 3:00 pm
    <div=data1>
    <script> ...................</script>
    </div>
    

    is not valid HTML. It should be:

    <div id='data1'>
    <script> ...................</script>
    </div>
    

    You’re missing the id= part of the attribute.

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

Sidebar

Related Questions

I'm sending post data using jquery, but when I retrieve it in asp all
I am using AJAX to send form data to a server php file that
I am sending an Ajax Request using jQuery. What happens is that I am
I am sending an AJAX request using POST over X-Domain for a widget we
I am sending post data to saveworld.php and getting some result in that page
i'm just sending a normal POST request using Ajax.BeginForm... i output the form elements
I am trying to create a post using Ajax and jQuery. But it isn't
I had a response on a question yesterday about sending POST data to the
I am sending an ajax XMLHttpRequest using the POST method. When the request is
I'm using a pure javascript code and i'm sending a post ajax request using

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.