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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:23:19+00:00 2026-05-25T14:23:19+00:00

I am currently write a html page for uploading image, once the image gets

  • 0

I am currently write a html page for uploading image, once the image gets upload, it automatically append underneath the upload section using ajax, so that people can start edit the uploaded image. here is my code for append the image, image description,radio button and check box

$('#thumbnails').append('<div id="imagediv' + str_idnum + '" style="border: 0px solid #aaa;text-align:left;padding:20px;"><div><img src="' + response + '" style="padding:10px; margin-right:20px; border-bottom: 2px solid #ccc;border-left: 2px solid #ccc;border-top: 2px solid #ddd; border-right: 2px solid #ddd;"  id="imageid' + str_idnum + '" align="left"/></div><div class="descriptionwrapper" style="border: 0px solid #aaa;"><textarea cols="40" rows="3" id="textarea' + str_idnum + '" onClick="SelectAll(\'textarea' + str_idnum + '\')" align="left" style="resize:none;">Optional description goes here...</textarea><br /><input type="checkbox" style="margin-top:-20px" name="delete" value="Delete" id="delete' + str_idnum + '"/>Delete<br /><input type="radio" name="setcoverpic" value="setcoverpic" id="setcoverpic' + str_idnum + '"/>Make this the front cover of set<br /><br /></div></div><br /><br /><br />');

here is the code for all the buttons to perform save, delete, delete all, function

   <div id="buttonbardiv">
    <div class="fancybuttonwrapper" style="margin-left:100px;"><span class="button">   <span>
    <input type="button" class="form_button" id="checkall" value="  Check all"></span> </span> </div>  
   <div class="fancybuttonwrapper" style="margin-left:316px; "><span class="button"><span>
        <input type="button" class="form_button" id="deletecheckedbutton" value="    Delete Checked Items"></span></span> </div>
      <div class="fancybuttonwrapper" style="margin-left:500px;"><span class="button"><span>
        <input type="button" class="form_button" id="finisheduploadingbutton" value="  Save and Exit">
      </span></span> </div>
        <div class="fancybuttonwrapper" style="margin-left:460px;"><span class="button"><span>
         <input type="button" class="form_button" id="gobackbutton" value="  Go Back">
        </span></span> </div>
  </div>       

      <div class="images" id="thumbnails">
     </div>

my question is that how I call ajax to perform the save, delete and delete all functions when the button get clicked, thanks!

  • 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-25T14:23:20+00:00Added an answer on May 25, 2026 at 2:23 pm

    I think it depends on the way your application works. In a RESTful application, you would call those, for example:

    save: POST /things
    delete: DELETE /things/1
    

    And have a controller on your server that executes your requests. Basically, what you have to keep in mind is to associate HTTP requests (AJAX) to a script that controls actions in your database.

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

Sidebar

Related Questions

I'm currently investigating whether it's possible to write a html/aspx page which contains an
I am currently trying to write functional tests for a charging form which gets
currently I am trying to write to an 20x4 LCD Dot-Matrix Module using Perle's
I'm currently using ITextSharp to write a PDF to a web browser, but I
I'm currently using the WebAii automation framework to write some user interface tests against
I currently have a PrintingWebService that I call from an AJAX page with all
I'm looking to write / emulate a tab strip using HTML & CSS only.
Currently I'm using this: HTML: <div id=container> <img src=x.jpg id=bg /> <div id=content> <h1>Welcome
I'm currently tempted to write the following: public class Class1() { public Class1() {
I am currently trying to write an addin for PowerPoint that whenever any PowerPoint

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.