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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:46:43+00:00 2026-06-04T14:46:43+00:00

I want to enhance my tool’s page where as soon use click a button.

  • 0

I want to enhance my tool’s page where as soon use click a button. Request goes to server and depending upon return type (fail/pass) i change color of button. No Refresh/page reload

Page has multiple buttons : some what like below.

Name       9-11  -  11-2      2-5

Resource1 - Button - Button - Button 

Resource2 - Button - Button - Button 

Resource1 - Button - Button - Button

I am a c++ programmer so you might feel i asked a simple question

  • 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-04T14:46:44+00:00Added an answer on June 4, 2026 at 2:46 pm

    Here’s a sample of jQuery Ajax posting a Form. Personally, I’m unfamiliar with PHP but Ajax is the same no matter what. You just need to post to something that can return Success = true or false. This POST happens asynchronously so you don’t get a page refresh unless you do something specific in the success: section.

    $("document").ready(function () {
    
        $('form').submit(function () {
            if ($(this).valid()) {
                $.ajax({
                    url: yourUrlHere,
                    dataType: "json",
                    cache: false,
                    type: 'POST',
                    data: $(this).serialize(),
                    success: function (result) {
                        if(result.Success) {
                            // do nothing
                        }                           
                    }
                });
            }
            return false;
        });
    });
    

    Of course you don’t have to be doing a POST either, it could be a GET

    type: 'GET',
    

    And if you don’t need to pass any data just leave data: section out. But if you want to specify the data you can with data: { paramName: yourValue },

    The cache: false, line can be left out if you want to cache the page. Seeing as how you aren’t going to show any changes you can remove that line. jQuery appends a unique value to the Url so as to keep it from caching. Specifying type: "json", or whatever your specific type is, is always a good idea but not necessary.

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

Sidebar

Related Questions

I build a jquery image slider and i want to enhance it , my
I want like to enhance spam protection on my site. I've found out that
want to have a Hyperlink-Button in a gridView in which I can display a
I want to enhance slightly a contrast of a bitmap, usually I do this
I want to enhance an application with scripting support like many other applications have,
I have an assignment to enhance an already existing tool written in Borland c++,
I want to enhance the functionality of acts-as-taggable-on by adding parent_id and acts_as_tree to
Creating app with jQuery Mobile, I want a page to load data from a
I have the following code and want to enhance the performance (maybe with LINQ
I'm trying to enhance our server platform with the ability to track some kind

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.