I am using Jquery tools, the overlay effect and want to close it if the JSON response is ok, but I want to do it with a delay.
$.ajax({ //bla bla success: function(data){ var obj = jQuery.parseJSON(data); if (obj.status=='OK') { $('#status').text('bla bla'); jQuery('.close').trigger('click'); } else { $('#status').text('bla bla'); } } });
so this is jQuery ('. close'). trigger ('click'); should be done after a while. Any ideas?
jquery ajax overlay
Boris goryachev
source share