I have had setup the following:
$.ajaxSetup({
dataType: 'xml',
error: function(xhr) {
        $('#error_msg').html('<p>Error ' + xhr.status + ' - ' + xhr.statusText +
'</p>')
})

Now I want make one  call to a HTML document.
So I state:

$.get('uzudo', 
        function(data) {
                $('#insert_here').html(data)
        },
        'html'
        );

it is suppose that the data type:html passed to the $.get() function
overriddes the default data type: xml.
This isn't working!
I am getting a 200 Ok status on error message and the HTML content isn't
inserted.

You can see the script in action at: http://jsbin.com/iviqi/edit and the
requested HTML content at http://jsbin.com/uzudo/edit
 

-----
MaurĂ­cio Samy Silva
-- 
View this message in context: 
http://www.nabble.com/Overrridden-%24.ajaxSetup%28%29-options-tp22960357s27240p22960357.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to