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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:18:04+00:00 2026-06-05T03:18:04+00:00

I am using the jquery ajax plugin to submit a form. $(‘#profile-form’).ajaxForm({ success:function(response, statusText,

  • 0

I am using the jquery ajax plugin to submit a form.

$('#profile-form').ajaxForm({
            success:function(response, statusText, xhr, $form){
                console.log(statusText,response,xhr);
            },
            beforeSubmit : function(formData, jqForm, options){
                if ($('#permissions').data("permissionsModified") == true){
                    formData.push({name : 'selectedPermissions', value : JSON.stringify($('#permissions').data('selected'))});
                }
            }
        });

The server sends a redirect request back and the following is displayed on the firebug console :

302 Moved Temporarily

in front of the action url of the form.
Immediately after that, the redirect URL is shown and the ‘request in progress’ symbol in from of that keeps rotating. In the success callback of ajaxform, the statusText is “success” and the response text is the entire new redirect page. How to check whether the server has redirected the requested (and then, how the display the redirected page on the browser) or there was a json reposnse from the server

  • 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-05T03:18:05+00:00Added an answer on June 5, 2026 at 3:18 am

    If I remember rightly, the browser should silently (transparently) follow any redirects issued over an AJAX request.

    After a little digging, it appears I am correct, see point 2: http://www.w3.org/TR/XMLHttpRequest/#same-origin-request-event-rules

    The only solution I can think of is a custom status code, but that’s kind of stretching the paradigm a bit far. Unfortunately not much else can be done.

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

Sidebar

Related Questions

I'm using the jQuery plugin ajaxForm to submit a file upload form via AJAX.
I'm using the jQuery validation plugin and the form uses ajax to submit the
i'm using ajax form jquery plugin to submit a form (in a dialog) via
I'm using the jQuery Form plugin to do an 'ajax' submit of my form,
I have a form using jquery validation plugin. My submit button has an ajax
So I have ajax file upload partial (using Jquery Form plugin), it's working perfectly,
I am trying to use jquery validator plugin and form submit via ajax in
I'm using the JQuery Form Plugin ( http://jquery.malsup.com/form/ ) to create an Ajax Form.
I am using Jquery form plugin to upload file in Ajax request.File is successfully
I am using Jquery form plugin to upload file in Ajax request.File is successfully

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.