Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Ajax functionality changed with newer jquery versions - cannot figure out what has changed!

$
0
0

I am working to modify a code sample called "WebMatrix and jQuery Form" from Mikesdotnetting. That code sample is based on jQuery 1.4.2. Current jQuery is on version 1.9.1

The problem lies in the section function(response), where the dialog does close, but it does not load EnterBarn nor does it highlight the first row in the grid.

From http://api.jquery.com/jQuery.ajax/ I have found that functionality of success has change since 1.4.*, but I have no clue if this is responsible for the code not functioning.

buttons: {
                    'Add Barn' : function(){
                        $.ajax({
                            type: "POST",
                            url: $("#add-barn-form").attr('action'),
                            data: $("#add-barn-form").serialize(),
                            dataType: "text/plain",
                            success: function(response) {
                                $('#dialog-form').dialog('close');
                                $("#grid").load('/EnterBarn/ #grid', function(){
                                    $('tbody > tr:first')
                                    .effect("highlight", {}, 2000);
                                });
                            },

Another possibility is $("#grid").load('/EnterBarn/ #grid', function(){ , but I see nothing mentioned of changes since 1.4.X

http://api.jquery.com/load/

Anyone?

TIA

Robert


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>