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

The Archive Base Latest Questions

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

$(#submitbutton).button().click(function() { var request = $.ajax({ type: post, url: mmm.php, data:abc=abcdefghijklmnopqrstuvwxyz, success:function(data){ alert(success: +data);

  • 0
$("#submitbutton").button().click(function() {
    var request = $.ajax({
    type: "post",
    url: "mmm.php",
    data:"abc=abcdefghijklmnopqrstuvwxyz",
    success:function(data){ alert("success: " +data); },
    error:function(data){ alert("error "+data); },
    statusCode:{
        200:function(){alert("200");},
        304:function(){alert("304");},
        404:function(){alert("404");}},
    isModified:function(){alert("Something was modified");}
});

This Post on IE9 is replied correctly. On chrome, It generates error alert with the following: “error [Object][Object]”

Chrome Console show no error, server replies:

for IE:

10.0.0.4 – – [22/Jul/2012:18:00:22 +0300] “GET /development-bundle/ui/jquery.ui.button.js HTTP/1.1” 200 11342 “http://xxxx.xxxx.net/first.html” “Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)”

For Chrome:

10.0.0.4 – – [22/Jul/2012:18:08:34 +0300] “GET /development-bundle/ui/jquery.ui.button.js HTTP/1.1” 304 – “http://xxxx.xxxxxx.net/first.html?” “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11”

Any idea why chrome adds a question mark after the ‘first.html’ and IE don’t ? It causes the apache server to return 304 that looks to Chrome as error

thank you

  • 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:58:03+00:00Added an answer on June 8, 2026 at 3:58 am

    you would want to first fix your jSon that you wish to pass to the server.. it is incorrect currently.. change it to the following and then try.

    $("#submitbutton").click(function() {
        var request = $.ajax({
        type: "post",
        url: "mmm.php",
        data:{abc:"abcdefghijklmnopqrstuvwxyz"},
        success:function(data){ alert("success: " +data); },
        error:function(data){ alert("error "+data); },
        statusCode:{
            200:function(){alert("200");},
            304:function(){alert("304");},
            404:function(){alert("404");}},
        isModified:function(){alert("Something was modified");}
    });
    

    I also modified your event binding, the button() call doesnt seem necessary.

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

Sidebar

Related Questions

Here is what I have going on in my AJAX: $('#submit-button').click(function(){ var twit =
Here is the JQuery: $(document).ready(function() { $('#autosave').click(function() { var url = window.location.pathname; $postData =
$('#submit').click(function () { //Get the data from all the fields var name = $('input[name=name]');
I'm trying to put a javascript code in my form submit button. $('#BtExcluir').click(function(event){ var
I have the following javascript function which i call on the submit button click....
I have the code below and everything works but the button click function on
Using jquery1.7.1 and django1.3 ,I was trying to make a post request through ajax,in
I've a php form <form action= method=POST> <input id=input1 name=key type=text> <input id=input2 name=name
when I click submit button it shows the validation right but after that alert
I have a submit button when i click on that button i am having

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.