divesh123456 / jqueryjs

Automatically exported from code.google.com/p/jqueryjs
0 stars 0 forks source link

jQuery Ajax form submisssion doesnt work in IE #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by sinandu...@gmail.com on 8 Aug 2007 at 7:31

GoogleCodeExporter commented 9 years ago
Same problem with version 1.2.1 (IE7, XP Pro). Works well in 1.1.2

Original comment by fspies...@gmail.com on 21 Dec 2007 at 11:17

GoogleCodeExporter commented 9 years ago
Thank you for writing up this problem.  Unfortunately we use a different bug 
tracking system at http://dev.jquery.com/ so this issue was just noticed.  In 
the 
future, please use that system for tracking issues.  We are going to check the 
current google issues and then close this issue database to help stop any 
confusion 
about which to use.

The new ticket can be found here:

http://dev.jquery.com/ticket/2149

Thanks.

Original comment by davidser...@gmail.com on 11 Jan 2008 at 5:54