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

  • Home
  • SEARCH
  • 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 382363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:10:31+00:00 2026-05-12T15:10:31+00:00

Going with the just jquery it joke i was wondering in my website i

  • 0

Going with the just jquery it joke i was wondering in my website i have a link that says “Add”. After clicking it the page refreshes and it says remove. I figure this would be better with ajax and not require the page to reload. How do i do this with jquery (should i do it in jquery?) and how do i know when the server receives the add so i can update my picture (i am sure there is a processing/complete state?)

  • 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-12T15:10:31+00:00Added an answer on May 12, 2026 at 3:10 pm

    jQuery AJAX functions let you specify success and failure functions which you can use to update your page.

    $("#mylink").click (function (event) {
      $.ajax({
        type: "POST", // or GET
        url: "/my/address.php",
        data: "someData=someThing&someMore=somethingElse",
        success: function(data) {
          $("#someElement").doSomething().
        },
        error: function() {
          // something's gone wrong.
        }
      });
    
      event.preventDefault(); // stop the browser following the link
    });
    

    For more read the jQuery AJAX page – it has loads of examples).

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

Sidebar

Related Questions

I'm horrible at jQuery, just starting to learn. I have a menu structure that's
I am just going through some backbone tutorials and I have a general jQuery
I'm just getting started with ASP.NET MVC. I'm going to be using JQuery on
Just going through the sample Scala code on Scala website, but encountered an annoying
Just going to say that I'm new to AS3, What I'm trying to do
I am just going to submit my iphone application . But I just have
I have just started using jQuery in the past couple of weeks and am
I've just been learning some jQUery to get a basic image gallery going on
I'm building several jQuery plugin and going ahead I thought that will be useful
I have a PHP page with various forms I've been using jQuery to submit/verify

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.