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