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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:47:36+00:00 2026-05-24T00:47:36+00:00

Here is my need: I show a popup in which some text boxes are

  • 0

Here is my need:

I show a popup in which some text boxes are displayed and a submit button. Now when user presses submit I need to insert values inserted in textboxes to the db. I have done this but I also need to show newly added values in the page it self without refreshing it. I tried this using Ajax but it requires lot of writing html tags in servlet like

printWriter.print("<table><tr>"+data.getId()+"</tr></table>");

and then show whole response in a div tag. Is there any easy way of diong this?

  • 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-24T00:47:37+00:00Added an answer on May 24, 2026 at 12:47 am

    A better way to do it would be for the servlet to return some JSON or XML to the page and then have some client-side javascript that updates the view. If your data is simple then you may not even need JSON or XML – maybe a comma-separated list of values is enough for your use case.

    Doing it this way means that your servlet doesn’t need to worry about writing HTML tags in the AJAX response, and your client-side doesn’t need to worry about malicious HTML coming back from the server (always a possibility if user input is involved).

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

Sidebar

Related Questions

here i need a batch file which can apply and create label or base
OK, my need here is to save whatever typed in the rich text box
This question follows on from a previous question which can be found here: Need
I need to create a caption bar button for a CDockablePane which will call
Is there anything out there that allows you to show a small text popup
i have a button where i need the a confirm popup. this is like
I'm converting an existing program to C++ and here need to manipulate Sybase timestamps.
We've had an ongoing need here that I can't figure out how to address
I tried this JavaScript but it doesn't work - here I need to change
I am working on a wpf application. Here I need to use System.Windows.Forms.FolderBrowserDialog in

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.