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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:11:17+00:00 2026-06-08T03:11:17+00:00

$(#submitbutton).button().click(function() { $.ajax({ type: ‘POST’, url: ‘tst/mmm.php’, data: { abc: abcdefghijklmnopqrstuvwxyz }, success: function(msg){

  • 0
$("#submitbutton").button().click(function() {
    $.ajax({
        type: 'POST',
        url: 'tst/mmm.php',
        data: { abc: "abcdefghijklmnopqrstuvwxyz" },
        success: function(msg){
            alert(msg);
        }
    });
});

# cat tst/mmm.php
<?php echo json_encode(array("first"=>"YyXy","last"=>"yyyyXXX")); ?>    

Why cant i see an alert that tells me first=YyXy&last=yyyyXXX . if it means anything, there is access to mmm.php from remote. They are both on apache. Where should i look for the response of this post? Sorry for the lame questions in the subject,i’m new to it. Thanx!!

EDIT 1: html code:

 <body>
            <div id=container>
            <div id="first">
                    <form id='form1'>
                            <button id="submitbutton" type="submit">Submit</button></br></br>
                    </form>
            </div>

EDIT 2 :
Do I need special user:group permissions for the html to post to php?
Should I use some special settings to allow access to mmm.php in apache configuration (httpd.conf) ?

  • 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-08T03:11:19+00:00Added an answer on June 8, 2026 at 3:11 am

    Well, In the docs they state the following:

    Deprecation Notice: The jqXHR.success(), jqXHR.error(), and
    jqXHR.complete() callbacks
    will be deprecated in jQuery 1.8. To prepare your code for their eventual removal, use
    jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.

    so i used their example and now it looks like that(and works) :

    $("#submitbutton").button().click(function() {
        $.ajax({
            type: 'POST',
            url: 'mmm.php',
            data: { abc: "abcdefghijklmnopqrstuvwxyz" } })
            .done(function() { alert("success"); })
            .fail(function() { alert("error"); })
            .always(function() { alert("complete"); });
       });
    });
    

    thank you guys!!

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

Sidebar

Related Questions

$(#submitbutton).button().click(function() { var request = $.ajax({ type: post, url: mmm.php, data:abc=abcdefghijklmnopqrstuvwxyz, success:function(data){ alert(success: +data);
Here is what I have going on in my AJAX: $('#submit-button').click(function(){ var twit =
Here is my jQuery code: <script type=text/javascript> //<!-- $(document).ready(function() { $('input[type=submit]').click(function() { $.ajax({ type:
I load data set by Jquery AJAX as $(function(){ $('#next').submit(function(e){ e.preventDefault(); var form =
$(#submit-button).click(function() { if($.trim($(#email).val()) === ) { $(.error-message-email).show(); } if($.trim($(#password).val()) === ){ $(.error-message-password).show(); } return
I have the following form that has 2 selects: <form id=form class=form_visitar method=post action=ajax/selects.php>
I have this function when I click on my submit button: $('#signup-button').click(function(event){ var username_check
I've a php form <form action= method=POST> <input id=input1 name=key type=text> <input id=input2 name=name
$('#submit').click(function () { //Get the data from all the fields var name = $('input[name=name]');
when I click submit button it shows the validation right but after that alert

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.