Here is my code:

$.search = function() {
    $.ajax({
        url: "/search/engine",
        dataType: "html",
        type: "POST",
        timeout: 10000,
        cache: false,
        data: {
            a: $("#a").val(),
            b: $("#b").val(),
            c: $("#c").val(),
            page: 1,
            records_per_page: 10
        },
        complete: function(){
             // empty now
        },
        success: function(data, status){
            $("#tab1").html(data);
        },
        error: function(XMLHttpRequest, textStatus, errorThrown){
            $("#tab1").html("<div id=\"searchError\">Search Error</
div>");
        }
    });
}

On Apr 18, 12:48 am, Dmitry Bykadorov <[EMAIL PROTECTED]>
wrote:
> Hello all!
>
> I have some funny things with jquery.
>
> In developing my first application was confronted with such a problem:
> $.ajax () incorrectly works in IE6 and IE7.
>
> Example 1. jquery.autocomplete plugin. FF, Opera, Safari - all is
> well. In IE request sent to the server returns the data (text /
> plain), but the data do not appear on the autocomplete box.
>
> Example 2. simply jQuery.ajax (). The situation is similar, but I
> decided to find a solution. First it turned out that - IE does not
> consider a request successfully completed - triggered error callback
> (textStatus = parsererror).
>
> The sequence of roughly this:
>
> about line 2712 (jquery.js) if request successfull, we enter in the
> function jQuery.httpData (xml, s.dataType). In this feature, it seems
> the problem is in command of these lines:
>
> var data = xml ? r.responseXML : r.responseText;
> if (xml && data.documentElement.tagName == "parsererror")
> (
> throw "parsererror";
> )
>
> in that place I have a xml = false, r.responseText not even displayed
> as follows:
>
> alert (r.responseText)
>
> Does someone have seen such ajax trouble? What it involves, and how to
> avoid it?

Reply via email to