Bug Tracker

Modify

Ticket #2149 (closed bug: invalid)

Opened 5 years ago

Last modified 14 months ago

jQuery Ajax form submisssion doesnt work in IE

Reported by: davidserduke Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.1.4
Keywords: Cc:
Blocking: Blocked by:

Description

Reported by sinanduman on the Google issues board and moved here.

What steps will reproduce the problem?

// prepare the form when the DOM is ready 
$(document).ready(function() { 
    var options = { 
        target:        '#output',   // target element(s) to be updated 
with server response 
        // beforeSubmit:  showRequest  // pre-submit callback 
        success:       selectBox  // post-submit callback 
    }; 
 
    // bind to the form's submit event 
    $('#converter').submit(function() { 
        // inside event callbacks 'this' is the DOM element so we first 
        // wrap it in a jQuery object and then invoke ajaxSubmit 
        $(this).ajaxSubmit(options); 
        // !!! Important !!! 
        // always return false to prevent standard browser submit and page 
navigation 
        return false; 
    }); 
}); 
 
 
// post-submit callback 
function selectBox(responseText)  {
	document.converter.output.value=responseText;
	document.converter.output.focus();
	document.converter.output.select();
}

What is the expected output? What do you see instead?

It is OK in Opera and FF but not IE. It is expected that responseText would be in #output text box.

What version of the product are you using? On what operating system? jQuery last version, 1.1.3.1, Internet Explorer 7, Windows Vista Home Basic Edition

Please provide any additional information below. I am using jQuery with jQuery Form plug-in. Delete comment Comment 1 by fspiesser, Dec 21, 2007 Same problem with version 1.2.1 (IE7, XP Pro). Works well in 1.1.2

Change History

comment:1 Changed 5 years ago by davidserduke

  • Version changed from 1.2.1 to 1.1.4

comment:2 in reply to: ↑ description Changed 4 years ago by Airport1

Is it possible this bug seems to remain still in latest version?

The success handler is never called under IE6, but under all other modern browsers.

Is there a workaround?

comment:3 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

This is not a jQuery core bug; ajaxSubmit is part of the Form plugin, assuming that's the one being referred to here.

 http://jquery.malsup.com/form/

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.